jjdh.opengl.core
Class CgProgram
java.lang.Object
jjdh.opengl.core.CgProgram
public class CgProgram
- extends Object
This class encapsulates a NVIDIA Cg Shader program.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cgContext
private static com.sun.opengl.cg.CGcontext cgContext
cgProgram
private com.sun.opengl.cg.CGprogram cgProgram
cgProfile
private int cgProfile
CgProgram
public CgProgram(int cgProfile,
InputStream stream)
throws IOException
- Throws:
IOException
CgProgram
public CgProgram(int cgProfile,
InputStream input,
String entryPoint,
String... compilerParameters)
throws IOException
- Throws:
IOException
getNamedParameter
public com.sun.opengl.cg.CGparameter getNamedParameter(String name)
enableProfile
public void enableProfile()
disableProfile
public void disableProfile()
load
public void load()
bind
public void bind()
getContext
public static com.sun.opengl.cg.CGcontext getContext()
checkCgError
private void checkCgError()
throws com.sun.opengl.cg.CgException
- Throws:
com.sun.opengl.cg.CgException
destroy
public void destroy()
destroyContext
public static void destroyContext()
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.