전체 글

전체 글

    glHint

    Name glHint — specify implementation-specific hints C Specification void fsfuncglHint( GLenum target , GLenum mode) ; Parameters target Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT , GL_GENERATE_MIPMAP_HINT , GL_LINE_SMOOTH_HINT , GL_PERSPECTIVE_CORRECTION_HINT, and GL_POINT_SMOOTH_HINT are accepted. mode Specifies a symbolic constant indicating the desired..

    GLSufaceView.Renderer

    GLSurfaceView.Renderer GLSurfaceView.Renderer is a generic render interface. In your implementation of this renderer you should put all your calls to render a frame. There are three functions to implement:// Called when the surface is created or recreated. public void onSurfaceCreated(GL10 gl, EGLConfig config) // Called to draw the current frame. public void onDrawFrame(GL10 gl) // Called when ..

    MainActivity 와 GLRenderer

    MainActivity package com.example.opengl; import android.app.Activity; import android.opengl.GLSurfaceView; import android.os.Bundle; import android.view.Menu; public class MainActivity extends Activity { private GLSurfaceView mGLSurfaceView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mGLSurfaceView = ..

    Android에서 OpenGL E.S

    Android에는 OpenGL를 사용할 수 있도록 OpenGL E.S 를 제공한다. Android에서 OpenGL은 SDK에 포함된 API이고, View 또한 GLSurfaceView 클래스를 제공하여 사용한다. OpenGL을 Android에서 사용할 때 기본적으로 알아야 할 내용은 다음과 같다.. View를 상속받은 SurfaceVIew, SurfaceView를 Rendering 할 클래스를 설정하여야 한다. 그리고, View를 보여줄 Activity의 View로 설정하여야 한다.

    윈도우에서 안드로이드 NDK 개발환경 설치

    안드로이드에서 C/C++ 코드로 된 모듈을 불러오기 위해서는 NDK (Native Development Kit) 를 이용해야만 합니다. 어떻게 설정해서 개발해야 하는지 간단히 알아봅니다. 먼저, 제 개발환경 OS: Windows 7 Eclipse: Eclipse IDE for Java Developer Indigo 1. Eclipse 에 C++ Development Tools 설치 Help > Install New Software > Choose “Indigo” as the update site > Select “Programming Language” Branch > Check “Eclipse C/C++ Development Tools 2. Cygwin 설치 http://www.cygwin.com 에 접..

    TCP/IP

    package com.example.test; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.net.InetAddress; import java.net.Socket; import android.os.Bundle; import android.os.Handler; import android.app.Activity; import android.ut..