public NV3xGpuProgram ( |
||
parent | ||
name | string | |
handle | System.UInt64 | |
group | string | |
isManual | bool | |
loader | IManualResourceLoader | |
리턴 | System |
public NV3xGpuProgram( ResourceManager parent, string name, ResourceHandle handle, string group, bool isManual, IManualResourceLoader loader )
: base( parent, name, handle, group, isManual, loader )
{
// generate the program and store the unique name
Gl.glGenProgramsNV( 1, out programId );
// find the GL enum for the type of program this is
programType = ( Type == GpuProgramType.Vertex ) ? Gl.GL_VERTEX_PROGRAM_NV : Gl.GL_FRAGMENT_PROGRAM_NV;
}