¡Create a context
lCGcontext cgContext =
CgGL.cgCreateContext();
¡Select and enable Profile
lint cgVertexProfile =
CgGL.CG_PROFILE_VP20;
lCgGL.cgGLEnableProfile(cgVertexProfile);
¡Create & Load program
lCGprogram cgVertexProgram = CgGL.cgCreateProgramFromFile(cgContext, CgGL.CG_SOURCE, "Normal.cg", cgVertexProfile,
"Normal",
null);
lCgGL.cgGLLoadProgram(cgVertexProgram1);