DD::Image::GPUContext Class Reference

List of all members.

Public Member Functions

Internal

Nuke internal use only.

void init ()
void fini ()
bool isInitialised () const
void attachGLSLProgram (void *)
void resetAllTextureUnits ()
void setWidth (int width)
void setHeight (int height)
void resetCurrentOp ()
void incrementCurrentOp ()
void decrementCurrentOp ()
std::string currentOpPrefix ()
GPU

GPU context public interface.

int acquireTextureUnit ()
void releaseTextureUnit (int unit)
int getNumFreeTextureUnits () const
Width and Height

Get the computed result width and height

int width () const
int height () const
GLSL

GLSL program interface

bool enable () const
bool disable () const
GLhandleARB programHandle () const
 Program handle.
bool bind (const std::string &name, bool v) const
 Bind a bool to the named variable.
bool bind (const std::string &name, int v) const
 Bind an integer to the named variable.
bool bind (const std::string &name, float v) const
 Bind a float to the named variable.
bool bind (const std::string &name, int siz, int count, const bool v[]) const
 Bind a bvec2, bvec3 or bvec4 to the named variable.
bool bind (const std::string &name, int siz, int count, const int v[]) const
 Bind a ivec2, ivec3 or ivec4 to the named variable.
bool bind (const std::string &name, int siz, int count, float v[]) const
 Bind a vec2, vec3 or vec4 to the named variable.
bool bind (const std::string &name, const Matrix3 &mat) const
 Bind a Matrix3 to the named variable.
bool bind (const std::string &name, const Matrix4 &mat) const
 Bind a Matrix4 to the named variable.

Detailed Description

Abstracts the Viewer GPU pipeline in an independent way. To be used by GPU Ops that implement the OpenGL callbacks.