RE_OGLRender Class Reference

#include <RE_OGLRender.h>

Inheritance diagram for RE_OGLRender:

RE_Render

List of all members.

Public Member Functions

 RE_OGLRender (int do_foreground, const char *appname=0)
virtual ~RE_OGLRender ()
const char * className () const
int getContextID () const
bool isInitialized () const
virtual RE_RendergetRender ()=0
int glslMajorVersion ()
int glslMinorVersion ()
bool hasGLExtension (RE_Extension e) const
void getDriverInfo (UT_WorkBuffer &info)
RE_OGLExtgetExt () const
int64 getFreeTextureMemoryKB (int64 *largest_chunk=NULL)
int64 getFreeBufferMemoryKB (int64 *largest_chunk=NULL)
int64 getFreeFramebufferMemoryKB (int64 *largest_chunk=NULL)
RE_DisplayMode getMode () const
RE_VisualType getVisualType () const
void enableMultisample (bool enable)
bool isMultisampleEnabled () const
void getMaxViewportSize (int &w, int &h) const
int getMaxColorSamples () const
int getMaxDepthSamples () const
void setWindow (RE_Window *)
bool makeCurrent ()
bool isCurrent ()
bool contextIsValid ()
RE_OGLContext getContext () const
bool pushOffscreenBuffer (OGLDrawable type)
void popOffscreenBuffer ()
void setMainContext (RE_Window *w)
const RE_WindowgetCurrentWindow () const
RE_WindowgetCurrentWindow ()
void lockContextForRender ()
void unlockContextAfterRender ()
bool tryLockContextForRender ()
bool isContextLocked () const
void setIconLoader (RE_IDType wid, RE_IconLoader loader)
void clearIconLoader (RE_IDType wid)
void setIconLoader (RE_IconLoader loader)
void setIconImage (const char *filename)
void bumpRenderCount ()
int64 getRenderCount () const
int getGLError ()
int getNextGLError ()
void clearGLErrors ()
const char * getGLErrorString (int error)
void printGLError (const char *header, bool assert=false)
void printAllGLErrors (const char *header, bool assert=false)
void dumpState (bool extended_info=true)
void dumpNewState ()
void dumpTextureState ()
void dumpLightState () const
void verifyState ()
void getLimits (UT_WorkBuffer &os)
int pushDrawFramebuffer ()
int pushDrawFramebuffer (RE_OGLFramebuffer *fb)
void setDrawFramebuffer (RE_OGLFramebuffer *fb)
RE_OGLFramebuffergetDrawFramebuffer ()
void popDrawFramebuffer (int *nest=NULL)
int pushReadFramebuffer ()
int pushReadFramebuffer (RE_OGLFramebuffer *fb)
void setReadFramebuffer (RE_OGLFramebuffer *fb)
RE_OGLFramebuffergetReadFramebuffer ()
void popReadFramebuffer (int *nest=NULL)
void updateFramebuffer ()
void updateCurrentFramebuffer (RE_OGLFramebuffer *fb, bool for_draw)
void useSampleMask (bool use)
bool usingSampleMask () const
int getMaxIntegerSamples () const
int getSampleMask (int mask_number)
void setSampleMask (int mask_number, int mask)
void clear (float *color=NULL)
void clearZ (float z=1.0)
void clearCZ (float z=1.0)
void clearS ()
void enableColorBufferWriting ()
void disableColorBufferWriting ()
bool getColorBufferWriting ()
void updateColorBufferWriting ()
void swapbuffers ()
int pushDrawBuffer (RE_RenderBuf buf=RE_BUFFER_UNINIT)
void popDrawBuffer (int *nest=0)
void setDrawBuffer (RE_RenderBuf buf)
RE_RenderBuf getDrawBuffer ()
int pushReadBuffer (RE_RenderBuf buf=RE_BUFFER_UNINIT)
void popReadBuffer (int *nest=0)
void setReadBuffer (RE_RenderBuf buf)
RE_RenderBuf getReadBuffer ()
bool isFrontBufferDirty () const
void setFrontBufferDirty (bool d)
void flush (int wait=0) const
void waitForRetrace () const
void ortho2DW (float l, float r, float b, float t)
void ortho3DW (float l, float r, float b, float t, float n, float f)
void perspective (float fov_radians, float a, float n, float f)
void window3DW (float l, float r, float b, float t, float near, float far)
int mapWorld (float xs, float ys, float *x1, float *y1, float *z1, float *x2, float *y2, float *z2)
int mapWorld (float xs, float ys, const UT_DimRect &viewport, const UT_Matrix4D &proj, const UT_Matrix4D &view, float *x1, float *y1, float *z1, float *x2, float *y2, float *z2)
int mapWorld (double xs, double ys, const UT_DimRect &viewport, const UT_Matrix4D &proj, const UT_Matrix4D &view, double *x1, double *y1, double *z1, double *x2, double *y2, double *z2)
int mapScreen (float xw, float yw, float zw, float *xs, float *ys)
template<typename T >
int mapScreen (T xw, T yw, T zw, const UT_DimRect &viewport, const UT_Matrix4D &proj, const UT_Matrix4D &view, T *xs, T *ys)
void viewport2DI (const UT_DimRect &rect)
void screenMask2DI (const UT_DimRect &rect)
void disableScreenMask ()
void intersectMask2DI (const UT_DimRect &rect)
UT_DimRect getScreenMask2DI ()
UT_DimRect getViewport2DI ()
bool getViewportMaskActive () const
void orthoFromViewport2DI (const UT_DimRect &viewport)
void viewportOrtho2DI (const UT_DimRect &rect)
void clipPlaneDisable (int which)
void clipPlaneEnable (int which, const UT_Vector4D &plane)
int getOGLMaxClipPlanes ()
void setActiveOcclusionQuery (RE_OcclusionQuery *q)
RE_OcclusionQuerygetActiveOcclusionQuery () const
int isBackface ()
void setBackface (int removeBackface=0)
int getReverseWinding ()
void setReverseWinding (int reverse_winding)
bool isPointOffset ()
bool isLineOffset ()
bool isPolygonOffset ()
void setPointOffset (bool onoff)
void setLineOffset (bool onoff)
void polygonOffset (bool onoff)
void setOffsetAmount (float variable, float constant)
void getOffsetAmount (float *variable, float *constant)
void pushViewport ()
void popViewport ()
void pushState (int viewing)
void popState ()
void matrixMode (RE_MatrixMode mode)
RE_MatrixMode getMatrixMode ()
void pushMatrix (int update_projection=1)
void popMatrix (int update_projection=1)
void loadIdentityMatrix ()
void loadMatrix (const UT_Matrix4 &m)
void loadMatrix (const UT_DMatrix4 &m)
void getMatrix (UT_Matrix4 &m)
void getAMatrix (RE_MatrixMode mmode, UT_Matrix4 &m)
void getAMatrix (RE_MatrixMode mmode, UT_DMatrix4 &m)
void multiplyMatrix (const UT_Matrix4 &m)
void multiplyMatrix (const UT_DMatrix4 &m)
void translate (float x, float y, float z=0.0)
void scale (float x=1.0, float y=1.0, float z=1.0)
void rotate (float angle, char axis)
bool beginTransformFeedback (RE_PrimType mode, bool rasterize_too)
void endTransformFeedback ()
int getNumFeedbackPrimitives ()
bool hasFeedbackBufferOverflow ()
bool isTransformFeedbackEnabled () const
RE_PrimType getFeedbackMode () const
bool isRasterizeEnabled () const
void setColor (const UT_Color &c, float alpha=1.0)
void setColor (float r, float g, float b, float a)
void setColorMask (bool red, bool green, bool blue, bool alpha)
void getColorMask (bool &red, bool &green, bool &blue, bool &alpha)
void getColor (UT_Color &c) const
void setAlpha (float alpha)
float getAlpha () const
int pushColor ()
void popColor (int *nest=NULL)
int pushColor (const UT_Color &c, float alpha=1.0f)
void resetColorCache ()
void enableColorSum (bool sum)
bool getColorSum () const
int pushPattern (RE_FillPattern p)
void popPattern (int *nest=NULL)
int pushLineStyle (RE_LineStyle s)
void popLineStyle (int *nest=NULL)
int pushLineWidth (float w)
void popLineWidth (int *nest=NULL)
float getLineWidth () const
float getMaxSmoothLineWidth ()
int pushPointSize (float size)
void popPointSize (int *nest=NULL)
void setPointSize (float size)
void setPointSprite (bool enable)
bool getPointSprite () const
void setProgramPointSize (bool enable)
bool getProgramPointSize () const
int pushDepthState ()
void popDepthState (int *nest=NULL)
void enableDepthBufferWriting ()
void disableDepthBufferWriting ()
bool getDepthBufferWriting ()
void updateDepthBufferWriting ()
void enableDepthTest ()
void disableDepthTest ()
bool getDepthTest ()
void updateDepthTest ()
void setZFunction (RE_ZFunction func)
RE_ZFunction getZFunction () const
void updateZFunction () const
void enableDepthClamp (bool b)
bool getDepthClamp ()
void updateDepthClamp ()
int pushStencilState ()
void popStencilState (int *nest=NULL)
void setSClearValue (int clearValue)
void setSWriteMask (int writeMask)
void setSFunction (RE_SFunction func, int ref, int mask)
void setSOperation (RE_SOperation sfail, RE_SOperation dpfail, RE_SOperation dppass)
void updateStencilState ()
void resetSFunction ()
void resetSWriteMask ()
void resetSClearValue ()
void resetSOperation ()
void enableLogicOp ()
void disableLogicOp ()
void invertPixels ()
void xorPixels ()
void beginXORDraw (RE_CacheObject *&id)
void endXORDraw (RE_CacheObject *&id)
void clearXORDraw (RE_CacheObject *&id)
void resetXORDraw (RE_CacheObject *&id)
int pushBlendState ()
void popBlendState (int *nesting=0)
bool isBlending () const
void blend (int onoff)
void setBlendFunction (RE_BlendSourceFactor sourceFactor, RE_BlendDestFactor destFactor)
bool setAlphaBlendFunction (RE_BlendSourceFactor sourceFactor, RE_BlendDestFactor destFactor, bool force=false)
void getBlendFunction (RE_BlendSourceFactor *sourceFactor, RE_BlendDestFactor *destFactor)
void getAlphaBlendFunction (RE_BlendSourceFactor *sourceFactor, RE_BlendDestFactor *destFactor)
void blendAlpha (int onoff)
void blendAlphaPremult (bool onoff)
void alphaTest (int onoff)
void setAlphaTestFunction (RE_ZFunction func, float val)
int pushSmoothLines ()
void popSmoothLines (int *nesting=0)
void forceSmooth ()
void smoothBlendLines (RE_SmoothMode mode)
void smoothBlendLinesNoFlagChange (bool by_smooth)
RE_SmoothMode getSmoothLines ()
int getBlendSmoothLevel () const
RE_CacheObjectstartObjectDefine ()
void endObjectDefine (bool push_attribs=true)
void deleteObject (RE_CacheObject *obj)
void drawObject (RE_CacheObject *obj)
int useDisplayLists ()
int isCaching () const
void insertGeometryIntoCache (RE_Geometry *obj, const char *gname)
void insertGeometryIntoCache (RE_Geometry *obj, int group_idx)
void insertReferenceIntoCache (RE_Geometry *obj)
RE_SmartObjectstartSmartObjectDefine ()
bool endSmartObjectDefine (bool push_attribs=true)
void deleteSmartObject (RE_SmartObject *obj)
bool isSmartObjectDirty (RE_SmartObject *obj)
bool inObjectDefine () const
bool trackingObjectShaderUsage () const
bool trackingObjectTextureUsage () const
const UT_IntArraygetShadersUsedBySmartObject (RE_SmartObject *obj)
void deletePendingShadersFromSmartObjectCreation ()
void deletePendingTexturesFromSmartObjectCreation ()
void recordShaderForSmartObject (int shader_idx)
void recordTextureForSmartObject (int texture_idx)
void clearAllMaterials ()
void clearAllTextures ()
void setMaterial (const RE_MaterialPtr &mat, int layer=0, bool texture=true, RE_ShaderTarget sht=RE_SHADER_TARGET_TRIANGLE, bool allow_alpha_test=true)
int pushMaterial (const RE_MaterialPtr &mat, int layer=0, bool texture=true, RE_ShaderTarget sht=RE_SHADER_TARGET_TRIANGLE, bool allow_alpha_test=true)
void popMaterial (int *nest=NULL)
SYS_DEPRECATED void pushMaterialDiffuse ()
SYS_DEPRECATED void popMaterialDiffuse ()
void setDiffuseMaterialFromMaterialStack ()
const RE_MaterialPtrgetDefaultMaterial ()
bool assignDefaultShader (RE_Material &mat, int layer=0, bool textured=true)
RE_ShadergetDefaultShader ()
int pushShader ()
int pushShader (RE_Shader *s)
int pushShader (RE_ShaderHandle &sh)
void bindShader (RE_Shader *s)
void bindShader (RE_ShaderHandle &sh)
RE_ShadergetShader ()
void popShader (int *nest=NULL)
void updateShader (RE_Shader *s)
void setShaderOnlyMode (bool enable)
void requestFixedFunction ()
bool setShaderSampleRate (fpreal rate)
fpreal getShaderSampleRate () const
bool isSampleShading () const
void pushUniform (RE_UniformBuiltIn builtin_var_type, RE_Uniform *var=NULL)
void pushUniformData (RE_UniformBuiltIn builtin_var_type, const void *data)
void popUniform (RE_UniformBuiltIn builtin_var_type)
RE_UniformgetUniform (RE_UniformBuiltIn builtin_var_type)
void printBuiltInUniforms (bool bound_only)
int bindBuiltInUniforms (RE_Shader *s, RE_UniformBinding bind)
bool bindBuiltInUniform (RE_Shader *s, RE_UniformBuiltIn uniform, RE_UniformBinding bind=RE_UNIFORM_BIND_ALL)
int64 getBuiltinUniformSerial () const
void pushUniform (RE_Uniform &uniform)
void popUniform (RE_Uniform &uniform)
int getMaxVertexAttribs () const
void enableTexture (RE_TextureDimension t, int textureunit=RE_ACTIVE_UNIT)
void disableTexture (int textureunit=RE_ACTIVE_UNIT)
bool isTextureEnabled (RE_TextureDimension t, int textureunit=RE_ACTIVE_UNIT) const
void bindTexture (const RE_OGLTexture *tex, int unit=RE_ACTIVE_UNIT, RE_TextureMode mode=RE_TEXTURE_UNKNOWN)
void unbindTexture (const RE_OGLTexture *tex)
void setActiveTexture (int textureunit)
int getActiveTexture () const
void setTextureMode (RE_TextureMode mode, int textureunit=RE_ACTIVE_UNIT)
RE_TextureMode getTextureMode (int textureunit=RE_ACTIVE_UNIT) const
int pushTextureState (int textureunit=RE_ACTIVE_UNIT)
void popTextureState (int *nest=NULL)
RE_TextureDimension getBoundTextureType (int texunit=RE_ACTIVE_UNIT) const
const RE_OGLTexturegetBoundTexture (int texunit=RE_ACTIVE_UNIT) const
int findFirstFreeTextureUnit (int starting_unit=0) const
void disableAllTextures ()
void updateTextureState () const
int getMaxTextureUnits () const
int getMaxTextureCoords () const
int getMaxShaderTextureUnits () const
int getMaxVertexTextureUnits () const
int getMaxGeometryTextureUnits () const
int getMaxFragmentTextureUnits () const
int getTextureAnisotropyLimit () const
int getMaxTextureSize () const
int getMaxTexture3DSize () const
int getMaxTextureRectangleSize ()
int pushReadAlignment (const void *data, int scansize)
void popReadAlignment (int *nest=NULL)
int pushWriteAlignment (const void *data, int scansize)
void popWriteAlignment (int *nest=NULL)
void useSeamlessMaps (bool enable)
bool usingSeamlessMaps ()
void removeTextureRefs (RE_OGLTexture *tex)
RE_OGLTexturegetRandomTexture (unsigned int seed, bool interp, int size=64, bool owned=false)
void setLightModel (int local_viewer, int two_sided_lighting)
unsigned defineLight (const RE_Light &light, int light_flags=0)
bool isLightDefined (const RE_Light &light) const
void deNormalizeLightDefinition (const RE_Light &light)
void setLightState (const RE_Light &light, int onoff)
int whichGLLightIs (const RE_Light *light)
void deNormalizeLightDefinition (unsigned index)
void undefineLight (unsigned index)
void undefineAllLights ()
void setLightState (unsigned index, int onoff)
bool getLightState (unsigned index)
void allLightsOff ()
RE_LightgetLight (int index)
int getNumLights ()
int getMaxLights () const
void setGLSpots (int f)
void setAllowSpecular (int f)
int getAllowSpecular () const
RE_UniformgetLightEnabledUniform () const
void setNormalizeGlobalAmbient (bool normalize)
bool getNormalizeGlobalAmbient () const
RE_InterpMode getInterpMode ()
void interpMode (RE_InterpMode mode)
void toggleLighting (int onoff)
void toggleLightShading (int onoff)
void setNonLitColor (const UT_Color &col)
void useProjectiveTexture (bool ison, RE_Light *light, RE_TextureCompress format, bool limitres, int maxw, int maxh, float texturescale, bool mipmap, int aniso_samples)
void getProjectiveTextureTransform (const RE_Light *light, bool bias, UT_Matrix4 &mat)
void depthCueing (int state, int usegreyramp=0)
void enableFog (int type, float density, float nearf, float farf, const float *col, float alpha)
void disableFog ()
void useFogCoord (bool onoff)
void fogCoord (const float z)
void beginPicking (uint *buf, long bufsiz, short x, short y, short w, short h)
long endPicking (uint *buf)
int isPicking () const
void loadPickId (uint id)
void pushPickId (uint id)
void popPickId ()
void setObjectPickID (int id)
int getObjectPickID () const
void clearObjectPickID ()
void setIndexTypePickID (int index)
int getIndexTypePickID () const
void clearIndexTypePickID ()
void setComp1PickID (int comp)
int getComp1PickID () const
void clearComp1PickID ()
void setComp2PickID (int comp)
int getComp2PickID () const
void clearComp2PickID ()
void uploadUniformPickID ()
void scaleViewForPick (float *l, float *r, float *b, float *t)
void zoomRaster (float xzoom, float yzoom=-1)
void getRasterZoom (float &xzoom, float &yzoom) const
void displayRaster (float x, float y, short w, short h, IMG_Raster *r, float zoom=-1.0f, int dither=1)
void displayRaster (float x, float y, short w, short h, UT_RGBA *r, short stride, float zoom=-1.0f, int dither=1, float alpha_mult=1.0)
void displayRaster (float x, float y, const PXL_Raster *raster, const RE_RasterOpts *opts=0)
void displayRasterTexture (float x, float y, const PXL_Raster *raster, const RE_RasterOpts *opts=0)
float getRasterX () const
float getRasterY () const
float getRasterZ () const
void convertRasterToTexture (PXL_Raster *raster, int convert16bit=0)
void convertLUTToTexture (PXL_Lookup *lookup)
bool setupShaderForLUT (RE_Shader *shader, PXL_Lookup *lookup, int lut_texture_unit=1, float gamma=1.0f, bool add_shader=true, bool for_gl32=false)
bool is3DLUTSupported ()
int isFloatZoomSupported ()
int getMaxPixelMapSize ()
int isHalfFloatSupported ()
void copyToFront (short x, short y, short w, short h)
void copyToBack (short x, short y, short w, short h)
void saveFront (short x, short y, short w, short h)
void restoreFront (short x, short y, short w, short h)
void saveRaster (short x, short y, short w, short h, IMG_Raster *r, bool use_backbuf=true)
TIL_RastersaveRaster (short x, short y, short w, short h, PXL_DataFormat format, bool alphatoo, bool use_backbuf=true)
void setDrawPixelsMode (RE_DrawPixelsMode new_mode)
RE_DrawPixelsMode getDrawPixelsMode ()
void rect2DW (float x1, float y1, float x2, float y2)
void rect2DS (short x1, short y1, short x2, short y2)
void rectf2DW (float x1, float y1, float x2, float y2)
void rectf2DS (short x1, short y1, short x2, short y2)
void box2DS (short x1, short y1, short x2, short y2)
void boxf2DS (short x1, short y1, short x2, short y2)
void arcW (float x, float y, float r, short a, short b)
void arcS (short x, short y, short r, short a, short b)
void arcfW (float x, float y, float r, short a, short b)
void arcfS (short x, short y, short r, short a, short b)
void sectorS (short x, short y, short ir, short outer, float a, float b, int slices=20, int loops=1)
void sectorW (float x, float y, float ir, float outer, float a, float b, int slices=20, int loops=1)
void circlefS (short x, short y, short innerr, short outerr, int slices=50)
void circlefW (float x, float y, float innerr, float outerr, int slices=50)
void circlefS (short x, short y, short r, int slices=50)
 Draw a filled circle of radius r.
void circlefW (float x, float y, float r, int slices=50)
void circleS (short x, short y, short r, int slices=50)
 Draw a circle of radius r with lines.
void circleW (float x, float y, float r, int slices=50)
void sphereW (float x, float y, float z, float r, int divs=20)
void spherefW (float x, float y, float z, float r, int divs=20)
void textMove3S (short x, short y, short z)
void textMove3W (float x, float y, float z)
void textMoveS (short x, short y)
void textMoveW (float x, float y)
void setViewportFontOffset (int x, int y)
int getViewportFontOffsetX () const
int getViewportFontOffsetY () const
void getTextPos (short *x, short *y)
void * createNurbsObject (void)
void destroyNurbsObject (void *nurbsobj)
void beginNurbsSurface (void *nurbsobj)
void endNurbsSurface (void *nurbsobj)
void nurbsSurface (int uklen, float *uknots, int vklen, float *vknots, int nrows, float *cvs, int uorder, int vorder, int rational, void *nurbsobj)
void beginTrimLoop (void *nurbsobj)
void endTrimLoop (void *nurbsobj)
void polyTrimCurve (int nvtx, float *cvs, void *nurbsobj)
void nurbsTrimCurve (int uklen, float *uknots, int order, float *cvs, int rational, void *nurbsobj)
void setNurbsProperties (int autonormal, float tol, void *nurbsobj=0)
bool beginConditionalRender (RE_OcclusionQuery *query_obj, bool render_wait, bool region_support)
void endConditionalRender ()
void enablePrimitiveRestart (bool enable)
void setPrimitiveRestartIndex (unsigned int index)
void drawElements (int glprim, int num_elements, int glelemtype, void *elements)
void drawRangeElements (int glprim, int min_vertex, int max_vertex, int num_elements, int glelemtype, void *elements)
void drawElementsInstanced (int glprim, int num_elements, int glelemtype, void *elements, int num_instances)
void drawElementsBaseVertex (int glprim, int num_elements, int glelemtype, void *elements, int base_vertex)
void drawRangeElementsBaseVertex (int glprim, int min_vertex, int max_vertex, int num_elements, int glelemtype, void *elements, int base_vertex)
void drawElementsInstancedBaseVertex (int glprim, int num_elements, int glelemtype, void *elements, int num_instances, int base_vertex)
void end ()
void beginPolygon (int concave)
void endPolygon ()
void beginLine ()
void endLine ()
void beginLines ()
void endLines ()
void beginClosedLine ()
void endClosedLine ()
void beginPoint ()
void endPoint ()
void beginTriangles ()
void endTriangles ()
void beginTriangleFan ()
void endTriangleFan ()
void beginTriMesh ()
void endTriMesh ()
void beginQuads ()
void endQuads ()
void beginQuadStrip ()
void endQuadStrip ()
void v2DS (const short v[2])
void v2DI (const int v[2])
void v2DW (const float v[2])
void v3DS (const short v[3])
void v3DI (const int v[3])
void v3DW (const float v[3])
void vertex2DI (int x, int y)
void vertex2DS (short x, short y)
void vertex2DW (float x, float y)
void vertex3DI (int x, int y, int z)
void vertex3DS (short x, short y, short z)
void vertex3DW (float x, float y, float z)
void c3DS (const short v[3])
void c3DW (const float v[3])
void c4DW (const float v[4])
void cacheC3DW (const float v[3])
void cacheC4DW (const float v[4])
void n3DW (const float v[3])
void t2DW (const float v[2])
void t3DW (const float v[3])
void t4DW (const float v[4])
void mt2DW (const float v[2], unsigned int tclayer)
void mt3DW (const float v[3], unsigned int tclayer)
void a1DW (unsigned int loc, const float v[1])
void a2DW (unsigned int loc, const float v[2])
void a3DW (unsigned int loc, const float v[3])
void a4DW (unsigned int loc, const float v[4])
void move2DW (float x, float y)
void move2DS (short x, short y)
void move3DW (float x, float y, float z)
void move3DS (short x, short y, short z)
void rmove2DW (float x, float y)
void rmove2DS (short x, short y)
void rmove3DW (float x, float y, float z)
void rmove3DS (short x, short y, short z)
void draw2DW (float x, float y)
void draw2DS (short x, short y)
void draw3DW (float x, float y, float z)
void draw3DS (short x, short y, short z)
void rdraw2DW (float x, float y)
void rdraw2DS (short x, short y)
void rdraw3DW (float x, float y, float z)
void rdraw3DS (short x, short y, short z)
void enable (int state)
void destroyVertexArrayObject (unsigned int vao)
void destroyQuery (unsigned int query)
 RE_FLAG_STATE (ColorMaterial, GL_COLOR_MATERIAL)
 RE_FLAG_STATE (DepthCueing, GL_FOG)
 RE_FLAG_STATE (Dither, GL_DITHER)
 RE_FLAG_STATE (Lighting, GL_LIGHTING)
 RE_FLAG_STATE (Scissor, GL_SCISSOR_TEST)
 RE_FLAG_STATE (AlphaTest, GL_ALPHA_TEST)
 RE_FLAG_STATE (LineSmoothing, GL_LINE_SMOOTH)
 RE_FLAG_STATE (PointSmoothing, GL_POINT_SMOOTH)
 RE_FLAG_STATE (Stencil, GL_STENCIL_TEST)
 RE_FLAG_11_STATE (PointOffset, GL_POLYGON_OFFSET_POINT)
 RE_FLAG_11_STATE (LineOffset, GL_POLYGON_OFFSET_LINE)
 RE_FLAG_11_STATE (FillOffset, GL_POLYGON_OFFSET_FILL)

Static Public Member Functions

static void initialize ()
static bool hasGL11 ()
static bool hasGL12 ()
static bool hasGL13 ()
static bool hasGL14 ()
static bool hasGL15 ()
static bool hasGL20 ()
static bool hasGL21 ()
static bool hasGL3 (int minor)
static bool hasGL4 (int minor)
static int glMajorVersion ()
static int glMinorVersion ()
static bool hasShadersExt ()
static void disableShadersExt ()
static RE_GraphicsDevice getGraphicsDevice ()
static bool hasDriverVersion ()
static int getDriverMajorVersion ()
static int getDriverMinorVersion ()
static int getDriverBuildMajorVersion ()
static int getDriverBuildMinorVersion ()
static void clearGraphicsCache ()
static int64 getInitialFreeMemoryKB ()
static int resX ()
static int resY ()
static int virtualResX ()
static int virtualResY ()
static void updateScreenSize ()
static int getNumScreens ()
static UT_DimRect getScreen (int i)
static UT_DimRect getWorkArea (int i)
static int getScreenContaining (int x, int y, bool closest_if_none=false)
static bool areScreensUniform ()
static UT_DimRect getWorkAreaForScreen (UT_DimRect area)
static UT_DimRect getTotalScreenArea ()
static UT_DimRect getTotalWorkArea ()
static void updateScreensAndWorkAreas ()
static int positionOnScreen (UT_DimRect &area, int screen_hint=-1)
static bool positionOkay (const UT_DimRect &area)
static short dpi ()
static float pixelsToInches (int n)
static int inchesToPixels (float i)
static void scaleDPI (fpreal dpi)
static RE_VisualgetVisualForMode (RE_DisplayMode newmode)
static RE_ServergetServer ()
static RE_CursorgetCursor (const char *name)
static void resetCurrent ()
static RE_WindowgetMainContext ()
static RE_OGLRendergetCurrentRender ()
static RE_WindowListgetWindowList ()
static void allowSmoothLines (int yn)
static int allowsSmoothLines ()
static int getGLBlendSource (RE_BlendSourceFactor sourceFactor)
static int getGLBlendDest (RE_BlendDestFactor destFactor)
static bool notifySmartObjectsOfShaderDeletion (int shader_idx)
static bool notifySmartObjectsOfTextureDeletion (int texture_idx)
static int computeTextureRes (unsigned int res)
static RE_FontinternalGetFont (const char *name, float size)
static RE_FontgetViewportFont ()
static RE_FontgetViewportSymbolFont (float size)
static void setDefaultFont (const char *name, float size)
static void destroyShaderObject (unsigned int progid, bool unreg, bool shader)
static void destroyTextureObject (unsigned int texid, RE_OGLTexture *tex)
static void destroyFramebufferObject (unsigned int fbo)
static void destroyRenderbufferObject (unsigned int rb)
static void destroyBufferObject (unsigned int buf)
static void destroyDisplayList (unsigned int list)
static void destroySync (void *sync)

Protected Attributes

ut_thread_id_t myNativeThread
bool myIsAllowingOtherThreads

Static Protected Attributes

static UT_ThreadSpecificValue
< RE_OGLRender * > 
theCurrentRender
static UT_ThreadSpecificValue
< RE_OGLRender * > 
theLastRender


Detailed Description

Definition at line 116 of file RE_OGLRender.h.


Constructor & Destructor Documentation

RE_OGLRender::RE_OGLRender ( int  do_foreground,
const char *  appname = 0 
)

virtual RE_OGLRender::~RE_OGLRender (  )  [virtual]


Member Function Documentation

void RE_OGLRender::a1DW ( unsigned int  loc,
const float  v[1] 
) [inline]

Definition at line 1440 of file RE_OGLRender.h.

void RE_OGLRender::a2DW ( unsigned int  loc,
const float  v[2] 
) [inline]

Definition at line 1442 of file RE_OGLRender.h.

void RE_OGLRender::a3DW ( unsigned int  loc,
const float  v[3] 
) [inline]

Definition at line 1444 of file RE_OGLRender.h.

void RE_OGLRender::a4DW ( unsigned int  loc,
const float  v[4] 
) [inline]

Definition at line 1446 of file RE_OGLRender.h.

void RE_OGLRender::allLightsOff (  ) 

void RE_OGLRender::allowSmoothLines ( int  yn  )  [inline, static]

Definition at line 2056 of file RE_OGLRender.h.

int RE_OGLRender::allowsSmoothLines (  )  [inline, static]

Definition at line 2057 of file RE_OGLRender.h.

void RE_OGLRender::alphaTest ( int  onoff  ) 

void RE_OGLRender::arcfS ( short  x,
short  y,
short  r,
short  a,
short  b 
)

void RE_OGLRender::arcfW ( float  x,
float  y,
float  r,
short  a,
short  b 
)

void RE_OGLRender::arcS ( short  x,
short  y,
short  r,
short  a,
short  b 
)

void RE_OGLRender::arcW ( float  x,
float  y,
float  r,
short  a,
short  b 
)

static bool RE_OGLRender::areScreensUniform (  )  [static]

bool RE_OGLRender::assignDefaultShader ( RE_Material mat,
int  layer = 0,
bool  textured = true 
)

void RE_OGLRender::beginClosedLine (  ) 

Examples:
euclid/GR_Euclid.C.

bool RE_OGLRender::beginConditionalRender ( RE_OcclusionQuery query_obj,
bool  render_wait,
bool  region_support 
)

void RE_OGLRender::beginLine (  ) 

void RE_OGLRender::beginLines (  ) 

void RE_OGLRender::beginNurbsSurface ( void *  nurbsobj  ) 

void RE_OGLRender::beginPicking ( uint buf,
long  bufsiz,
short  x,
short  y,
short  w,
short  h 
)

void RE_OGLRender::beginPoint (  ) 

Examples:
GR/GR_BaryCenter.C.

void RE_OGLRender::beginPolygon ( int  concave  ) 

Examples:
GR/GR_BoundingBox.C.

void RE_OGLRender::beginQuads (  ) 

void RE_OGLRender::beginQuadStrip (  ) 

Examples:
GR/GR_SimpleNoise.C.

bool RE_OGLRender::beginTransformFeedback ( RE_PrimType  mode,
bool  rasterize_too 
)

void RE_OGLRender::beginTriangleFan (  ) 

void RE_OGLRender::beginTriangles (  ) 

void RE_OGLRender::beginTriMesh (  ) 

void RE_OGLRender::beginTrimLoop ( void *  nurbsobj  ) 

void RE_OGLRender::beginXORDraw ( RE_CacheObject *&  id  ) 

bool RE_OGLRender::bindBuiltInUniform ( RE_Shader s,
RE_UniformBuiltIn  uniform,
RE_UniformBinding  bind = RE_UNIFORM_BIND_ALL 
)

int RE_OGLRender::bindBuiltInUniforms ( RE_Shader s,
RE_UniformBinding  bind 
)

void RE_OGLRender::bindShader ( RE_ShaderHandle sh  ) 

void RE_OGLRender::bindShader ( RE_Shader s  ) 

void RE_OGLRender::bindTexture ( const RE_OGLTexture tex,
int  unit = RE_ACTIVE_UNIT,
RE_TextureMode  mode = RE_TEXTURE_UNKNOWN 
)

void RE_OGLRender::blend ( int  onoff  ) 

void RE_OGLRender::blendAlpha ( int  onoff  ) 

void RE_OGLRender::blendAlphaPremult ( bool  onoff  ) 

void RE_OGLRender::box2DS ( short  x1,
short  y1,
short  x2,
short  y2 
)

void RE_OGLRender::boxf2DS ( short  x1,
short  y1,
short  x2,
short  y2 
)

void RE_OGLRender::bumpRenderCount (  )  [inline]

Definition at line 318 of file RE_OGLRender.h.

void RE_OGLRender::c3DS ( const short  v[3]  )  [inline]

Definition at line 1395 of file RE_OGLRender.h.

void RE_OGLRender::c3DW ( const float  v[3]  )  [inline]

Examples:
GR/GR_BoundingBox.C.

Definition at line 1401 of file RE_OGLRender.h.

void RE_OGLRender::c4DW ( const float  v[4]  )  [inline]

Definition at line 1406 of file RE_OGLRender.h.

void RE_OGLRender::cacheC3DW ( const float  v[3]  )  [inline]

Definition at line 1411 of file RE_OGLRender.h.

void RE_OGLRender::cacheC4DW ( const float  v[4]  )  [inline]

Definition at line 1422 of file RE_OGLRender.h.

void RE_OGLRender::circlefS ( short  x,
short  y,
short  r,
int  slices = 50 
)

Draw a filled circle of radius r.

void RE_OGLRender::circlefS ( short  x,
short  y,
short  innerr,
short  outerr,
int  slices = 50 
)

Draw a circle with a hole in the centre of it: draws only from radius innerr to radius outerr.

void RE_OGLRender::circlefW ( float  x,
float  y,
float  r,
int  slices = 50 
)

void RE_OGLRender::circlefW ( float  x,
float  y,
float  innerr,
float  outerr,
int  slices = 50 
)

void RE_OGLRender::circleS ( short  x,
short  y,
short  r,
int  slices = 50 
)

Draw a circle of radius r with lines.

void RE_OGLRender::circleW ( float  x,
float  y,
float  r,
int  slices = 50 
)

const char* RE_OGLRender::className (  )  const

void RE_OGLRender::clear ( float *  color = NULL  ) 

void RE_OGLRender::clearAllMaterials (  ) 

void RE_OGLRender::clearAllTextures (  ) 

void RE_OGLRender::clearComp1PickID (  ) 

void RE_OGLRender::clearComp2PickID (  ) 

void RE_OGLRender::clearCZ ( float  z = 1.0  ) 

void RE_OGLRender::clearGLErrors (  ) 

static void RE_OGLRender::clearGraphicsCache (  )  [static]

void RE_OGLRender::clearIconLoader ( RE_IDType  wid  ) 

void RE_OGLRender::clearIndexTypePickID (  ) 

void RE_OGLRender::clearObjectPickID (  ) 

void RE_OGLRender::clearS (  ) 

void RE_OGLRender::clearXORDraw ( RE_CacheObject *&  id  ) 

void RE_OGLRender::clearZ ( float  z = 1.0  ) 

void RE_OGLRender::clipPlaneDisable ( int  which  ) 

void RE_OGLRender::clipPlaneEnable ( int  which,
const UT_Vector4D plane 
)

int RE_OGLRender::computeTextureRes ( unsigned int  res  )  [inline, static]

Definition at line 2069 of file RE_OGLRender.h.

bool RE_OGLRender::contextIsValid (  )  [inline]

Definition at line 268 of file RE_OGLRender.h.

void RE_OGLRender::convertLUTToTexture ( PXL_Lookup lookup  ) 

void RE_OGLRender::convertRasterToTexture ( PXL_Raster raster,
int  convert16bit = 0 
)

void RE_OGLRender::copyToBack ( short  x,
short  y,
short  w,
short  h 
)

void RE_OGLRender::copyToFront ( short  x,
short  y,
short  w,
short  h 
)

void* RE_OGLRender::createNurbsObject ( void   ) 

unsigned RE_OGLRender::defineLight ( const RE_Light light,
int  light_flags = 0 
)

void RE_OGLRender::deleteObject ( RE_CacheObject obj  ) 

void RE_OGLRender::deletePendingShadersFromSmartObjectCreation (  ) 

void RE_OGLRender::deletePendingTexturesFromSmartObjectCreation (  ) 

void RE_OGLRender::deleteSmartObject ( RE_SmartObject obj  ) 

void RE_OGLRender::deNormalizeLightDefinition ( unsigned  index  ) 

void RE_OGLRender::deNormalizeLightDefinition ( const RE_Light light  ) 

void RE_OGLRender::depthCueing ( int  state,
int  usegreyramp = 0 
)

static void RE_OGLRender::destroyBufferObject ( unsigned int  buf  )  [static]

static void RE_OGLRender::destroyDisplayList ( unsigned int  list  )  [static]

static void RE_OGLRender::destroyFramebufferObject ( unsigned int  fbo  )  [static]

void RE_OGLRender::destroyNurbsObject ( void *  nurbsobj  ) 

void RE_OGLRender::destroyQuery ( unsigned int  query  ) 

static void RE_OGLRender::destroyRenderbufferObject ( unsigned int  rb  )  [static]

static void RE_OGLRender::destroyShaderObject ( unsigned int  progid,
bool  unreg,
bool  shader 
) [static]

static void RE_OGLRender::destroySync ( void *  sync  )  [static]

static void RE_OGLRender::destroyTextureObject ( unsigned int  texid,
RE_OGLTexture tex 
) [static]

void RE_OGLRender::destroyVertexArrayObject ( unsigned int  vao  ) 

void RE_OGLRender::disableAllTextures (  ) 

void RE_OGLRender::disableColorBufferWriting (  ) 

void RE_OGLRender::disableDepthBufferWriting (  ) 

void RE_OGLRender::disableDepthTest (  ) 

void RE_OGLRender::disableFog (  ) 

void RE_OGLRender::disableLogicOp (  ) 

void RE_OGLRender::disableScreenMask (  ) 

void RE_OGLRender::disableShadersExt (  )  [inline, static]

Definition at line 1923 of file RE_OGLRender.h.

void RE_OGLRender::disableTexture ( int  textureunit = RE_ACTIVE_UNIT  ) 

void RE_OGLRender::displayRaster ( float  x,
float  y,
const PXL_Raster raster,
const RE_RasterOpts opts = 0 
)

void RE_OGLRender::displayRaster ( float  x,
float  y,
short  w,
short  h,
UT_RGBA r,
short  stride,
float  zoom = -1.0f,
int  dither = 1,
float  alpha_mult = 1.0 
)

void RE_OGLRender::displayRaster ( float  x,
float  y,
short  w,
short  h,
IMG_Raster r,
float  zoom = -1.0f,
int  dither = 1 
)

void RE_OGLRender::displayRasterTexture ( float  x,
float  y,
const PXL_Raster raster,
const RE_RasterOpts opts = 0 
)

short RE_OGLRender::dpi (  )  [inline, static]

Definition at line 1951 of file RE_OGLRender.h.

void RE_OGLRender::draw2DS ( short  x,
short  y 
)

void RE_OGLRender::draw2DW ( float  x,
float  y 
)

void RE_OGLRender::draw3DS ( short  x,
short  y,
short  z 
)

void RE_OGLRender::draw3DW ( float  x,
float  y,
float  z 
)

void RE_OGLRender::drawElements ( int  glprim,
int  num_elements,
int  glelemtype,
void *  elements 
)

void RE_OGLRender::drawElementsBaseVertex ( int  glprim,
int  num_elements,
int  glelemtype,
void *  elements,
int  base_vertex 
)

void RE_OGLRender::drawElementsInstanced ( int  glprim,
int  num_elements,
int  glelemtype,
void *  elements,
int  num_instances 
)

void RE_OGLRender::drawElementsInstancedBaseVertex ( int  glprim,
int  num_elements,
int  glelemtype,
void *  elements,
int  num_instances,
int  base_vertex 
)

void RE_OGLRender::drawObject ( RE_CacheObject obj  ) 

void RE_OGLRender::drawRangeElements ( int  glprim,
int  min_vertex,
int  max_vertex,
int  num_elements,
int  glelemtype,
void *  elements 
)

void RE_OGLRender::drawRangeElementsBaseVertex ( int  glprim,
int  min_vertex,
int  max_vertex,
int  num_elements,
int  glelemtype,
void *  elements,
int  base_vertex 
)

void RE_OGLRender::dumpLightState (  )  const

void RE_OGLRender::dumpNewState (  ) 

void RE_OGLRender::dumpState ( bool  extended_info = true  ) 

void RE_OGLRender::dumpTextureState (  ) 

void RE_OGLRender::enable ( int  state  )  [inline]

Definition at line 1466 of file RE_OGLRender.h.

void RE_OGLRender::enableColorBufferWriting (  ) 

void RE_OGLRender::enableColorSum ( bool  sum  ) 

void RE_OGLRender::enableDepthBufferWriting (  ) 

void RE_OGLRender::enableDepthClamp ( bool  b  ) 

void RE_OGLRender::enableDepthTest (  ) 

void RE_OGLRender::enableFog ( int  type,
float  density,
float  nearf,
float  farf,
const float *  col,
float  alpha 
)

void RE_OGLRender::enableLogicOp (  ) 

void RE_OGLRender::enableMultisample ( bool  enable  ) 

void RE_OGLRender::enablePrimitiveRestart ( bool  enable  ) 

void RE_OGLRender::enableTexture ( RE_TextureDimension  t,
int  textureunit = RE_ACTIVE_UNIT 
)

void RE_OGLRender::end (  ) 

void RE_OGLRender::endClosedLine (  ) 

Examples:
euclid/GR_Euclid.C.

void RE_OGLRender::endConditionalRender (  ) 

void RE_OGLRender::endLine (  ) 

void RE_OGLRender::endLines (  ) 

void RE_OGLRender::endNurbsSurface ( void *  nurbsobj  ) 

void RE_OGLRender::endObjectDefine ( bool  push_attribs = true  ) 

long RE_OGLRender::endPicking ( uint buf  ) 

void RE_OGLRender::endPoint (  ) 

Examples:
GR/GR_BaryCenter.C.

void RE_OGLRender::endPolygon (  ) 

Examples:
GR/GR_BoundingBox.C.

void RE_OGLRender::endQuads (  ) 

void RE_OGLRender::endQuadStrip (  ) 

Examples:
GR/GR_SimpleNoise.C.

bool RE_OGLRender::endSmartObjectDefine ( bool  push_attribs = true  ) 

void RE_OGLRender::endTransformFeedback (  ) 

void RE_OGLRender::endTriangleFan (  ) 

void RE_OGLRender::endTriangles (  ) 

void RE_OGLRender::endTriMesh (  ) 

void RE_OGLRender::endTrimLoop ( void *  nurbsobj  ) 

void RE_OGLRender::endXORDraw ( RE_CacheObject *&  id  ) 

int RE_OGLRender::findFirstFreeTextureUnit ( int  starting_unit = 0  )  const

void RE_OGLRender::flush ( int  wait = 0  )  const

void RE_OGLRender::fogCoord ( const float  z  ) 

void RE_OGLRender::forceSmooth (  ) 

RE_OcclusionQuery* RE_OGLRender::getActiveOcclusionQuery (  )  const

int RE_OGLRender::getActiveTexture (  )  const

int RE_OGLRender::getAllowSpecular (  )  const [inline]

Definition at line 2087 of file RE_OGLRender.h.

float RE_OGLRender::getAlpha (  )  const

void RE_OGLRender::getAlphaBlendFunction ( RE_BlendSourceFactor sourceFactor,
RE_BlendDestFactor destFactor 
)

void RE_OGLRender::getAMatrix ( RE_MatrixMode  mmode,
UT_DMatrix4 m 
)

void RE_OGLRender::getAMatrix ( RE_MatrixMode  mmode,
UT_Matrix4 m 
)

void RE_OGLRender::getBlendFunction ( RE_BlendSourceFactor sourceFactor,
RE_BlendDestFactor destFactor 
)

int RE_OGLRender::getBlendSmoothLevel (  )  const [inline]

Definition at line 2051 of file RE_OGLRender.h.

const RE_OGLTexture* RE_OGLRender::getBoundTexture ( int  texunit = RE_ACTIVE_UNIT  )  const

RE_TextureDimension RE_OGLRender::getBoundTextureType ( int  texunit = RE_ACTIVE_UNIT  )  const

int64 RE_OGLRender::getBuiltinUniformSerial (  )  const [inline]

Definition at line 852 of file RE_OGLRender.h.

void RE_OGLRender::getColor ( UT_Color c  )  const

bool RE_OGLRender::getColorBufferWriting (  ) 

void RE_OGLRender::getColorMask ( bool &  red,
bool &  green,
bool &  blue,
bool &  alpha 
)

bool RE_OGLRender::getColorSum (  )  const

int RE_OGLRender::getComp1PickID (  )  const

int RE_OGLRender::getComp2PickID (  )  const

RE_OGLContext RE_OGLRender::getContext (  )  const [inline]

Definition at line 269 of file RE_OGLRender.h.

int RE_OGLRender::getContextID (  )  const [inline]

Definition at line 123 of file RE_OGLRender.h.

RE_OGLRender * RE_OGLRender::getCurrentRender (  )  [inline, static]

Definition at line 1972 of file RE_OGLRender.h.

RE_Window * RE_OGLRender::getCurrentWindow (  )  [inline]

Definition at line 1981 of file RE_OGLRender.h.

const RE_Window * RE_OGLRender::getCurrentWindow (  )  const [inline]

Definition at line 1978 of file RE_OGLRender.h.

static RE_Cursor* RE_OGLRender::getCursor ( const char *  name  )  [static]

const RE_MaterialPtr& RE_OGLRender::getDefaultMaterial (  ) 

RE_Shader* RE_OGLRender::getDefaultShader (  ) 

bool RE_OGLRender::getDepthBufferWriting (  ) 

bool RE_OGLRender::getDepthClamp (  ) 

bool RE_OGLRender::getDepthTest (  ) 

RE_RenderBuf RE_OGLRender::getDrawBuffer (  ) 

RE_OGLFramebuffer* RE_OGLRender::getDrawFramebuffer (  ) 

RE_DrawPixelsMode RE_OGLRender::getDrawPixelsMode (  ) 

int RE_OGLRender::getDriverBuildMajorVersion (  )  [inline, static]

Definition at line 1937 of file RE_OGLRender.h.

int RE_OGLRender::getDriverBuildMinorVersion (  )  [inline, static]

Definition at line 1938 of file RE_OGLRender.h.

void RE_OGLRender::getDriverInfo ( UT_WorkBuffer info  ) 

int RE_OGLRender::getDriverMajorVersion (  )  [inline, static]

Definition at line 1935 of file RE_OGLRender.h.

int RE_OGLRender::getDriverMinorVersion (  )  [inline, static]

Definition at line 1936 of file RE_OGLRender.h.

RE_OGLExt * RE_OGLRender::getExt (  )  const [inline]

Definition at line 1940 of file RE_OGLRender.h.

RE_PrimType RE_OGLRender::getFeedbackMode (  )  const [inline]

Definition at line 2140 of file RE_OGLRender.h.

int64 RE_OGLRender::getFreeBufferMemoryKB ( int64 largest_chunk = NULL  ) 

int64 RE_OGLRender::getFreeFramebufferMemoryKB ( int64 largest_chunk = NULL  ) 

int64 RE_OGLRender::getFreeTextureMemoryKB ( int64 largest_chunk = NULL  ) 

static int RE_OGLRender::getGLBlendDest ( RE_BlendDestFactor  destFactor  )  [static]

static int RE_OGLRender::getGLBlendSource ( RE_BlendSourceFactor  sourceFactor  )  [static]

int RE_OGLRender::getGLError (  ) 

const char* RE_OGLRender::getGLErrorString ( int  error  ) 

RE_GraphicsDevice RE_OGLRender::getGraphicsDevice (  )  [inline, static]

Definition at line 1926 of file RE_OGLRender.h.

int RE_OGLRender::getIndexTypePickID (  )  const

static int64 RE_OGLRender::getInitialFreeMemoryKB (  )  [static]

RE_InterpMode RE_OGLRender::getInterpMode (  ) 

RE_Light* RE_OGLRender::getLight ( int  index  ) 

RE_Uniform * RE_OGLRender::getLightEnabledUniform (  )  const [inline]

Definition at line 2090 of file RE_OGLRender.h.

bool RE_OGLRender::getLightState ( unsigned  index  ) 

void RE_OGLRender::getLimits ( UT_WorkBuffer os  ) 

float RE_OGLRender::getLineWidth (  )  const

RE_Window * RE_OGLRender::getMainContext (  )  [inline, static]

Definition at line 1969 of file RE_OGLRender.h.

void RE_OGLRender::getMatrix ( UT_Matrix4 m  ) 

RE_MatrixMode RE_OGLRender::getMatrixMode (  ) 

int RE_OGLRender::getMaxColorSamples (  )  const

int RE_OGLRender::getMaxDepthSamples (  )  const

int RE_OGLRender::getMaxFragmentTextureUnits (  )  const [inline]

Definition at line 931 of file RE_OGLRender.h.

int RE_OGLRender::getMaxGeometryTextureUnits (  )  const [inline]

Definition at line 929 of file RE_OGLRender.h.

int RE_OGLRender::getMaxIntegerSamples (  )  const

int RE_OGLRender::getMaxLights (  )  const

int RE_OGLRender::getMaxPixelMapSize (  ) 

int RE_OGLRender::getMaxShaderTextureUnits (  )  const [inline]

Definition at line 925 of file RE_OGLRender.h.

float RE_OGLRender::getMaxSmoothLineWidth (  ) 

int RE_OGLRender::getMaxTexture3DSize (  )  const [inline]

Definition at line 939 of file RE_OGLRender.h.

int RE_OGLRender::getMaxTextureCoords (  )  const [inline]

Definition at line 923 of file RE_OGLRender.h.

int RE_OGLRender::getMaxTextureRectangleSize (  ) 

int RE_OGLRender::getMaxTextureSize (  )  const [inline]

Definition at line 938 of file RE_OGLRender.h.

int RE_OGLRender::getMaxTextureUnits (  )  const [inline]

Definition at line 921 of file RE_OGLRender.h.

int RE_OGLRender::getMaxVertexAttribs (  )  const [inline]

Definition at line 866 of file RE_OGLRender.h.

int RE_OGLRender::getMaxVertexTextureUnits (  )  const [inline]

Definition at line 927 of file RE_OGLRender.h.

void RE_OGLRender::getMaxViewportSize ( int &  w,
int &  h 
) const

RE_DisplayMode RE_OGLRender::getMode (  )  const

int RE_OGLRender::getNextGLError (  ) 

bool RE_OGLRender::getNormalizeGlobalAmbient (  )  const [inline]

Definition at line 2098 of file RE_OGLRender.h.

int RE_OGLRender::getNumFeedbackPrimitives (  ) 

int RE_OGLRender::getNumLights (  ) 

static int RE_OGLRender::getNumScreens (  )  [static]

int RE_OGLRender::getObjectPickID (  )  const

void RE_OGLRender::getOffsetAmount ( float *  variable,
float *  constant 
) [inline]

Definition at line 2024 of file RE_OGLRender.h.

int RE_OGLRender::getOGLMaxClipPlanes (  )  [inline]

Definition at line 1998 of file RE_OGLRender.h.

bool RE_OGLRender::getPointSprite (  )  const

bool RE_OGLRender::getProgramPointSize (  )  const

void RE_OGLRender::getProjectiveTextureTransform ( const RE_Light light,
bool  bias,
UT_Matrix4 mat 
)

RE_OGLTexture* RE_OGLRender::getRandomTexture ( unsigned int  seed,
bool  interp,
int  size = 64,
bool  owned = false 
)

float RE_OGLRender::getRasterX (  )  const [inline]

Definition at line 2101 of file RE_OGLRender.h.

float RE_OGLRender::getRasterY (  )  const [inline]

Definition at line 2102 of file RE_OGLRender.h.

float RE_OGLRender::getRasterZ (  )  const [inline]

Definition at line 2103 of file RE_OGLRender.h.

void RE_OGLRender::getRasterZoom ( float &  xzoom,
float &  yzoom 
) const

RE_RenderBuf RE_OGLRender::getReadBuffer (  ) 

RE_OGLFramebuffer* RE_OGLRender::getReadFramebuffer (  ) 

virtual RE_Render* RE_OGLRender::getRender (  )  [pure virtual]

Implemented in RE_Render.

int64 RE_OGLRender::getRenderCount (  )  const [inline]

Definition at line 319 of file RE_OGLRender.h.

int RE_OGLRender::getReverseWinding (  ) 

int RE_OGLRender::getSampleMask ( int  mask_number  ) 

static UT_DimRect RE_OGLRender::getScreen ( int  i  )  [static]

static int RE_OGLRender::getScreenContaining ( int  x,
int  y,
bool  closest_if_none = false 
) [static]

UT_DimRect RE_OGLRender::getScreenMask2DI (  ) 

static RE_Server* RE_OGLRender::getServer (  )  [static]

RE_Shader* RE_OGLRender::getShader (  ) 

fpreal RE_OGLRender::getShaderSampleRate (  )  const

const UT_IntArray* RE_OGLRender::getShadersUsedBySmartObject ( RE_SmartObject obj  ) 

RE_SmoothMode RE_OGLRender::getSmoothLines (  ) 

void RE_OGLRender::getTextPos ( short *  x,
short *  y 
)

int RE_OGLRender::getTextureAnisotropyLimit (  )  const [inline]

Definition at line 933 of file RE_OGLRender.h.

RE_TextureMode RE_OGLRender::getTextureMode ( int  textureunit = RE_ACTIVE_UNIT  )  const

static UT_DimRect RE_OGLRender::getTotalScreenArea (  )  [static]

static UT_DimRect RE_OGLRender::getTotalWorkArea (  )  [static]

RE_Uniform * RE_OGLRender::getUniform ( RE_UniformBuiltIn  builtin_var_type  )  [inline]

Definition at line 2152 of file RE_OGLRender.h.

UT_DimRect RE_OGLRender::getViewport2DI (  ) 

static RE_Font* RE_OGLRender::getViewportFont (  )  [static]

Get the font we use in the viewport. This is not antialiased, but it is properly clipped and transformed in 3D space.

int RE_OGLRender::getViewportFontOffsetX (  )  const [inline]

Definition at line 2106 of file RE_OGLRender.h.

int RE_OGLRender::getViewportFontOffsetY (  )  const [inline]

Definition at line 2110 of file RE_OGLRender.h.

bool RE_OGLRender::getViewportMaskActive (  )  const

static RE_Font* RE_OGLRender::getViewportSymbolFont ( float  size  )  [static]

Get the symbol font we use in the viewport. Not antialiased, but properly clipped and transformed in 3D space.

Examples:
euclid/GR_Euclid.C.

static RE_Visual* RE_OGLRender::getVisualForMode ( RE_DisplayMode  newmode  )  [static]

RE_VisualType RE_OGLRender::getVisualType (  )  const

RE_WindowList * RE_OGLRender::getWindowList (  )  [inline, static]

Definition at line 1975 of file RE_OGLRender.h.

static UT_DimRect RE_OGLRender::getWorkArea ( int  i  )  [static]

static UT_DimRect RE_OGLRender::getWorkAreaForScreen ( UT_DimRect  area  )  [static]

RE_ZFunction RE_OGLRender::getZFunction (  )  const

int RE_OGLRender::glMajorVersion (  )  [inline, static]

Definition at line 1916 of file RE_OGLRender.h.

int RE_OGLRender::glMinorVersion (  )  [inline, static]

Definition at line 1917 of file RE_OGLRender.h.

int RE_OGLRender::glslMajorVersion (  )  [inline]

Definition at line 1919 of file RE_OGLRender.h.

int RE_OGLRender::glslMinorVersion (  )  [inline]

Definition at line 1920 of file RE_OGLRender.h.

bool RE_OGLRender::hasDriverVersion (  )  [inline, static]

Definition at line 1928 of file RE_OGLRender.h.

bool RE_OGLRender::hasFeedbackBufferOverflow (  ) 

bool RE_OGLRender::hasGL11 (  )  [inline, static]

Definition at line 1878 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL12 (  )  [inline, static]

Definition at line 1882 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL13 (  )  [inline, static]

Definition at line 1886 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL14 (  )  [inline, static]

Definition at line 1890 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL15 (  )  [inline, static]

Definition at line 1894 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL20 (  )  [inline, static]

Definition at line 1898 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL21 (  )  [inline, static]

Definition at line 1902 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL3 ( int  minor  )  [inline, static]

Definition at line 1907 of file RE_OGLRender.h.

bool RE_OGLRender::hasGL4 ( int  minor  )  [inline, static]

Definition at line 1912 of file RE_OGLRender.h.

bool RE_OGLRender::hasGLExtension ( RE_Extension  e  )  const [inline]

Definition at line 1941 of file RE_OGLRender.h.

bool RE_OGLRender::hasShadersExt (  )  [inline, static]

Definition at line 1922 of file RE_OGLRender.h.

int RE_OGLRender::inchesToPixels ( float  i  )  [inline, static]

Definition at line 1963 of file RE_OGLRender.h.

static void RE_OGLRender::initialize (  )  [static]

bool RE_OGLRender::inObjectDefine (  )  const [inline]

Definition at line 2059 of file RE_OGLRender.h.

void RE_OGLRender::insertGeometryIntoCache ( RE_Geometry obj,
int  group_idx 
)

void RE_OGLRender::insertGeometryIntoCache ( RE_Geometry obj,
const char *  gname 
)

void RE_OGLRender::insertReferenceIntoCache ( RE_Geometry obj  ) 

static RE_Font* RE_OGLRender::internalGetFont ( const char *  name,
float  size 
) [static]

Get a standard font for the UI. Size is in points. This should be protected with some friends, but due to various issues it can't be. Never use this - use UIgetFont instead.

void RE_OGLRender::interpMode ( RE_InterpMode  mode  ) 

void RE_OGLRender::intersectMask2DI ( const UT_DimRect rect  ) 

void RE_OGLRender::invertPixels (  ) 

bool RE_OGLRender::is3DLUTSupported (  ) 

int RE_OGLRender::isBackface (  ) 

bool RE_OGLRender::isBlending (  )  const [inline]

Definition at line 2046 of file RE_OGLRender.h.

int RE_OGLRender::isCaching (  )  const [inline]

Definition at line 2115 of file RE_OGLRender.h.

bool RE_OGLRender::isContextLocked (  )  const

bool RE_OGLRender::isCurrent (  )  [inline]

Definition at line 266 of file RE_OGLRender.h.

int RE_OGLRender::isFloatZoomSupported (  ) 

bool RE_OGLRender::isFrontBufferDirty (  )  const [inline]

Definition at line 1990 of file RE_OGLRender.h.

int RE_OGLRender::isHalfFloatSupported (  ) 

bool RE_OGLRender::isInitialized (  )  const [inline]

Definition at line 126 of file RE_OGLRender.h.

bool RE_OGLRender::isLightDefined ( const RE_Light light  )  const

bool RE_OGLRender::isLineOffset (  )  [inline]

Definition at line 2003 of file RE_OGLRender.h.

bool RE_OGLRender::isMultisampleEnabled (  )  const

int RE_OGLRender::isPicking (  )  const

bool RE_OGLRender::isPointOffset (  )  [inline]

Definition at line 2001 of file RE_OGLRender.h.

bool RE_OGLRender::isPolygonOffset (  ) 

bool RE_OGLRender::isRasterizeEnabled (  )  const [inline]

Definition at line 2146 of file RE_OGLRender.h.

bool RE_OGLRender::isSampleShading (  )  const

bool RE_OGLRender::isSmartObjectDirty ( RE_SmartObject obj  ) 

bool RE_OGLRender::isTextureEnabled ( RE_TextureDimension  t,
int  textureunit = RE_ACTIVE_UNIT 
) const

bool RE_OGLRender::isTransformFeedbackEnabled (  )  const [inline]

Definition at line 2134 of file RE_OGLRender.h.

void RE_OGLRender::loadIdentityMatrix (  ) 

void RE_OGLRender::loadMatrix ( const UT_DMatrix4 m  ) 

void RE_OGLRender::loadMatrix ( const UT_Matrix4 m  ) 

void RE_OGLRender::loadPickId ( uint  id  ) 

void RE_OGLRender::lockContextForRender (  ) 

bool RE_OGLRender::makeCurrent (  ) 

template<typename T >
int RE_OGLRender::mapScreen ( xw,
yw,
zw,
const UT_DimRect viewport,
const UT_Matrix4D proj,
const UT_Matrix4D view,
T *  xs,
T *  ys 
) [inline]

int RE_OGLRender::mapScreen ( float  xw,
float  yw,
float  zw,
float *  xs,
float *  ys 
)

int RE_OGLRender::mapWorld ( double  xs,
double  ys,
const UT_DimRect viewport,
const UT_Matrix4D proj,
const UT_Matrix4D view,
double *  x1,
double *  y1,
double *  z1,
double *  x2,
double *  y2,
double *  z2 
)

int RE_OGLRender::mapWorld ( float  xs,
float  ys,
const UT_DimRect viewport,
const UT_Matrix4D proj,
const UT_Matrix4D view,
float *  x1,
float *  y1,
float *  z1,
float *  x2,
float *  y2,
float *  z2 
)

int RE_OGLRender::mapWorld ( float  xs,
float  ys,
float *  x1,
float *  y1,
float *  z1,
float *  x2,
float *  y2,
float *  z2 
)

void RE_OGLRender::matrixMode ( RE_MatrixMode  mode  ) 

void RE_OGLRender::move2DS ( short  x,
short  y 
)

void RE_OGLRender::move2DW ( float  x,
float  y 
)

void RE_OGLRender::move3DS ( short  x,
short  y,
short  z 
)

void RE_OGLRender::move3DW ( float  x,
float  y,
float  z 
)

void RE_OGLRender::mt2DW ( const float  v[2],
unsigned int  tclayer 
)

void RE_OGLRender::mt3DW ( const float  v[3],
unsigned int  tclayer 
)

void RE_OGLRender::multiplyMatrix ( const UT_DMatrix4 m  ) 

void RE_OGLRender::multiplyMatrix ( const UT_Matrix4 m  ) 

void RE_OGLRender::n3DW ( const float  v[3]  )  [inline]

Examples:
GR/GR_BoundingBox.C, and GR/GR_SimpleNoise.C.

Definition at line 1434 of file RE_OGLRender.h.

static bool RE_OGLRender::notifySmartObjectsOfShaderDeletion ( int  shader_idx  )  [static]

static bool RE_OGLRender::notifySmartObjectsOfTextureDeletion ( int  texture_idx  )  [static]

void RE_OGLRender::nurbsSurface ( int  uklen,
float *  uknots,
int  vklen,
float *  vknots,
int  nrows,
float *  cvs,
int  uorder,
int  vorder,
int  rational,
void *  nurbsobj 
)

void RE_OGLRender::nurbsTrimCurve ( int  uklen,
float *  uknots,
int  order,
float *  cvs,
int  rational,
void *  nurbsobj 
)

void RE_OGLRender::ortho2DW ( float  l,
float  r,
float  b,
float  t 
)

void RE_OGLRender::ortho3DW ( float  l,
float  r,
float  b,
float  t,
float  n,
float  f 
)

void RE_OGLRender::orthoFromViewport2DI ( const UT_DimRect viewport  )  [inline]

Definition at line 454 of file RE_OGLRender.h.

void RE_OGLRender::perspective ( float  fov_radians,
float  a,
float  n,
float  f 
)

float RE_OGLRender::pixelsToInches ( int  n  )  [inline, static]

Definition at line 1957 of file RE_OGLRender.h.

void RE_OGLRender::polygonOffset ( bool  onoff  ) 

void RE_OGLRender::polyTrimCurve ( int  nvtx,
float *  cvs,
void *  nurbsobj 
)

void RE_OGLRender::popBlendState ( int *  nesting = 0  ) 

void RE_OGLRender::popColor ( int *  nest = NULL  ) 

Examples:
euclid/GR_Euclid.C.

void RE_OGLRender::popDepthState ( int *  nest = NULL  ) 

void RE_OGLRender::popDrawBuffer ( int *  nest = 0  ) 

void RE_OGLRender::popDrawFramebuffer ( int *  nest = NULL  ) 

void RE_OGLRender::popLineStyle ( int *  nest = NULL  ) 

void RE_OGLRender::popLineWidth ( int *  nest = NULL  ) 

void RE_OGLRender::popMaterial ( int *  nest = NULL  ) 

SYS_DEPRECATED void RE_OGLRender::popMaterialDiffuse (  ) 

Examples:
GR/GR_BoundingBox.C.

void RE_OGLRender::popMatrix ( int  update_projection = 1  ) 

void RE_OGLRender::popOffscreenBuffer (  ) 

void RE_OGLRender::popPattern ( int *  nest = NULL  ) 

void RE_OGLRender::popPickId (  ) 

void RE_OGLRender::popPointSize ( int *  nest = NULL  ) 

void RE_OGLRender::popReadAlignment ( int *  nest = NULL  ) 

void RE_OGLRender::popReadBuffer ( int *  nest = 0  ) 

void RE_OGLRender::popReadFramebuffer ( int *  nest = NULL  ) 

void RE_OGLRender::popShader ( int *  nest = NULL  ) 

void RE_OGLRender::popSmoothLines ( int *  nesting = 0  ) 

void RE_OGLRender::popState (  ) 

void RE_OGLRender::popStencilState ( int *  nest = NULL  ) 

void RE_OGLRender::popTextureState ( int *  nest = NULL  ) 

void RE_OGLRender::popUniform ( RE_Uniform uniform  ) 

void RE_OGLRender::popUniform ( RE_UniformBuiltIn  builtin_var_type  ) 

void RE_OGLRender::popViewport (  ) 

void RE_OGLRender::popWriteAlignment ( int *  nest = NULL  ) 

static bool RE_OGLRender::positionOkay ( const UT_DimRect area  )  [static]

static int RE_OGLRender::positionOnScreen ( UT_DimRect area,
int  screen_hint = -1 
) [static]

void RE_OGLRender::printAllGLErrors ( const char *  header,
bool  assert = false 
)

void RE_OGLRender::printBuiltInUniforms ( bool  bound_only  ) 

void RE_OGLRender::printGLError ( const char *  header,
bool  assert = false 
)

int RE_OGLRender::pushBlendState (  ) 

int RE_OGLRender::pushColor ( const UT_Color c,
float  alpha = 1.0f 
) [inline]

Definition at line 2031 of file RE_OGLRender.h.

int RE_OGLRender::pushColor (  ) 

Examples:
euclid/GR_Euclid.C.

int RE_OGLRender::pushDepthState (  ) 

int RE_OGLRender::pushDrawBuffer ( RE_RenderBuf  buf = RE_BUFFER_UNINIT  ) 

int RE_OGLRender::pushDrawFramebuffer ( RE_OGLFramebuffer fb  ) 

int RE_OGLRender::pushDrawFramebuffer (  ) 

int RE_OGLRender::pushLineStyle ( RE_LineStyle  s  ) 

int RE_OGLRender::pushLineWidth ( float  w  ) 

int RE_OGLRender::pushMaterial ( const RE_MaterialPtr mat,
int  layer = 0,
bool  texture = true,
RE_ShaderTarget  sht = RE_SHADER_TARGET_TRIANGLE,
bool  allow_alpha_test = true 
)

SYS_DEPRECATED void RE_OGLRender::pushMaterialDiffuse (  ) 

Examples:
GR/GR_BoundingBox.C.

void RE_OGLRender::pushMatrix ( int  update_projection = 1  ) 

bool RE_OGLRender::pushOffscreenBuffer ( OGLDrawable  type  ) 

int RE_OGLRender::pushPattern ( RE_FillPattern  p  ) 

void RE_OGLRender::pushPickId ( uint  id  ) 

int RE_OGLRender::pushPointSize ( float  size  ) 

int RE_OGLRender::pushReadAlignment ( const void *  data,
int  scansize 
)

int RE_OGLRender::pushReadBuffer ( RE_RenderBuf  buf = RE_BUFFER_UNINIT  ) 

int RE_OGLRender::pushReadFramebuffer ( RE_OGLFramebuffer fb  ) 

int RE_OGLRender::pushReadFramebuffer (  ) 

int RE_OGLRender::pushShader ( RE_ShaderHandle sh  ) 

int RE_OGLRender::pushShader ( RE_Shader s  ) 

int RE_OGLRender::pushShader (  ) 

int RE_OGLRender::pushSmoothLines (  ) 

void RE_OGLRender::pushState ( int  viewing  ) 

int RE_OGLRender::pushStencilState (  ) 

int RE_OGLRender::pushTextureState ( int  textureunit = RE_ACTIVE_UNIT  ) 

void RE_OGLRender::pushUniform ( RE_Uniform uniform  ) 

void RE_OGLRender::pushUniform ( RE_UniformBuiltIn  builtin_var_type,
RE_Uniform var = NULL 
)

void RE_OGLRender::pushUniformData ( RE_UniformBuiltIn  builtin_var_type,
const void *  data 
)

void RE_OGLRender::pushViewport (  ) 

int RE_OGLRender::pushWriteAlignment ( const void *  data,
int  scansize 
)

void RE_OGLRender::rdraw2DS ( short  x,
short  y 
)

void RE_OGLRender::rdraw2DW ( float  x,
float  y 
)

void RE_OGLRender::rdraw3DS ( short  x,
short  y,
short  z 
)

void RE_OGLRender::rdraw3DW ( float  x,
float  y,
float  z 
)

RE_OGLRender::RE_FLAG_11_STATE ( FillOffset  ,
GL_POLYGON_OFFSET_FILL   
)

RE_OGLRender::RE_FLAG_11_STATE ( LineOffset  ,
GL_POLYGON_OFFSET_LINE   
)

RE_OGLRender::RE_FLAG_11_STATE ( PointOffset  ,
GL_POLYGON_OFFSET_POINT   
)

RE_OGLRender::RE_FLAG_STATE ( Stencil  ,
GL_STENCIL_TEST   
)

RE_OGLRender::RE_FLAG_STATE ( PointSmoothing  ,
GL_POINT_SMOOTH   
)

RE_OGLRender::RE_FLAG_STATE ( LineSmoothing  ,
GL_LINE_SMOOTH   
)

RE_OGLRender::RE_FLAG_STATE ( AlphaTest  ,
GL_ALPHA_TEST   
)

RE_OGLRender::RE_FLAG_STATE ( Scissor  ,
GL_SCISSOR_TEST   
)

RE_OGLRender::RE_FLAG_STATE ( Lighting  ,
GL_LIGHTING   
)

RE_OGLRender::RE_FLAG_STATE ( Dither  ,
GL_DITHER   
)

RE_OGLRender::RE_FLAG_STATE ( DepthCueing  ,
GL_FOG   
)

RE_OGLRender::RE_FLAG_STATE ( ColorMaterial  ,
GL_COLOR_MATERIAL   
)

void RE_OGLRender::recordShaderForSmartObject ( int  shader_idx  ) 

void RE_OGLRender::recordTextureForSmartObject ( int  texture_idx  ) 

void RE_OGLRender::rect2DS ( short  x1,
short  y1,
short  x2,
short  y2 
)

void RE_OGLRender::rect2DW ( float  x1,
float  y1,
float  x2,
float  y2 
)

void RE_OGLRender::rectf2DS ( short  x1,
short  y1,
short  x2,
short  y2 
)

void RE_OGLRender::rectf2DW ( float  x1,
float  y1,
float  x2,
float  y2 
)

void RE_OGLRender::removeTextureRefs ( RE_OGLTexture tex  ) 

void RE_OGLRender::requestFixedFunction (  ) 

void RE_OGLRender::resetColorCache (  )  [inline]

Definition at line 2039 of file RE_OGLRender.h.

static void RE_OGLRender::resetCurrent (  )  [static]

void RE_OGLRender::resetSClearValue (  ) 

void RE_OGLRender::resetSFunction (  ) 

void RE_OGLRender::resetSOperation (  ) 

void RE_OGLRender::resetSWriteMask (  ) 

void RE_OGLRender::resetXORDraw ( RE_CacheObject *&  id  ) 

void RE_OGLRender::restoreFront ( short  x,
short  y,
short  w,
short  h 
)

int RE_OGLRender::resX (  )  [inline, static]

Definition at line 1947 of file RE_OGLRender.h.

int RE_OGLRender::resY (  )  [inline, static]

Definition at line 1948 of file RE_OGLRender.h.

void RE_OGLRender::rmove2DS ( short  x,
short  y 
)

void RE_OGLRender::rmove2DW ( float  x,
float  y 
)

void RE_OGLRender::rmove3DS ( short  x,
short  y,
short  z 
)

void RE_OGLRender::rmove3DW ( float  x,
float  y,
float  z 
)

void RE_OGLRender::rotate ( float  angle,
char  axis 
)

void RE_OGLRender::saveFront ( short  x,
short  y,
short  w,
short  h 
)

TIL_Raster* RE_OGLRender::saveRaster ( short  x,
short  y,
short  w,
short  h,
PXL_DataFormat  format,
bool  alphatoo,
bool  use_backbuf = true 
)

void RE_OGLRender::saveRaster ( short  x,
short  y,
short  w,
short  h,
IMG_Raster r,
bool  use_backbuf = true 
)

void RE_OGLRender::scale ( float  x = 1.0,
float  y = 1.0,
float  z = 1.0 
)

static void RE_OGLRender::scaleDPI ( fpreal  dpi  )  [static]

void RE_OGLRender::scaleViewForPick ( float *  l,
float *  r,
float *  b,
float *  t 
)

void RE_OGLRender::screenMask2DI ( const UT_DimRect rect  ) 

void RE_OGLRender::sectorS ( short  x,
short  y,
short  ir,
short  outer,
float  a,
float  b,
int  slices = 20,
int  loops = 1 
)

void RE_OGLRender::sectorW ( float  x,
float  y,
float  ir,
float  outer,
float  a,
float  b,
int  slices = 20,
int  loops = 1 
)

void RE_OGLRender::setActiveOcclusionQuery ( RE_OcclusionQuery q  ) 

void RE_OGLRender::setActiveTexture ( int  textureunit  ) 

void RE_OGLRender::setAllowSpecular ( int  f  )  [inline]

Definition at line 2085 of file RE_OGLRender.h.

void RE_OGLRender::setAlpha ( float  alpha  ) 

bool RE_OGLRender::setAlphaBlendFunction ( RE_BlendSourceFactor  sourceFactor,
RE_BlendDestFactor  destFactor,
bool  force = false 
)

void RE_OGLRender::setAlphaTestFunction ( RE_ZFunction  func,
float  val 
)

void RE_OGLRender::setBackface ( int  removeBackface = 0  ) 

void RE_OGLRender::setBlendFunction ( RE_BlendSourceFactor  sourceFactor,
RE_BlendDestFactor  destFactor 
)

void RE_OGLRender::setColor ( float  r,
float  g,
float  b,
float  a 
)

void RE_OGLRender::setColor ( const UT_Color c,
float  alpha = 1.0 
)

void RE_OGLRender::setColorMask ( bool  red,
bool  green,
bool  blue,
bool  alpha 
)

void RE_OGLRender::setComp1PickID ( int  comp  ) 

void RE_OGLRender::setComp2PickID ( int  comp  ) 

static void RE_OGLRender::setDefaultFont ( const char *  name,
float  size 
) [static]

void RE_OGLRender::setDiffuseMaterialFromMaterialStack (  ) 

void RE_OGLRender::setDrawBuffer ( RE_RenderBuf  buf  ) 

void RE_OGLRender::setDrawFramebuffer ( RE_OGLFramebuffer fb  ) 

void RE_OGLRender::setDrawPixelsMode ( RE_DrawPixelsMode  new_mode  ) 

void RE_OGLRender::setFrontBufferDirty ( bool  d  )  [inline]

Definition at line 1994 of file RE_OGLRender.h.

void RE_OGLRender::setGLSpots ( int  f  )  [inline]

Definition at line 2082 of file RE_OGLRender.h.

void RE_OGLRender::setIconImage ( const char *  filename  ) 

void RE_OGLRender::setIconLoader ( RE_IconLoader  loader  )  [inline]

Definition at line 1984 of file RE_OGLRender.h.

void RE_OGLRender::setIconLoader ( RE_IDType  wid,
RE_IconLoader  loader 
)

void RE_OGLRender::setIndexTypePickID ( int  index  ) 

void RE_OGLRender::setLightModel ( int  local_viewer,
int  two_sided_lighting 
)

void RE_OGLRender::setLightState ( unsigned  index,
int  onoff 
)

void RE_OGLRender::setLightState ( const RE_Light light,
int  onoff 
)

void RE_OGLRender::setLineOffset ( bool  onoff  )  [inline]

Definition at line 2015 of file RE_OGLRender.h.

void RE_OGLRender::setMainContext ( RE_Window w  ) 

void RE_OGLRender::setMaterial ( const RE_MaterialPtr mat,
int  layer = 0,
bool  texture = true,
RE_ShaderTarget  sht = RE_SHADER_TARGET_TRIANGLE,
bool  allow_alpha_test = true 
)

void RE_OGLRender::setNonLitColor ( const UT_Color col  ) 

void RE_OGLRender::setNormalizeGlobalAmbient ( bool  normalize  )  [inline]

Definition at line 2094 of file RE_OGLRender.h.

void RE_OGLRender::setNurbsProperties ( int  autonormal,
float  tol,
void *  nurbsobj = 0 
)

void RE_OGLRender::setObjectPickID ( int  id  ) 

void RE_OGLRender::setOffsetAmount ( float  variable,
float  constant 
)

void RE_OGLRender::setPointOffset ( bool  onoff  )  [inline]

Definition at line 2006 of file RE_OGLRender.h.

void RE_OGLRender::setPointSize ( float  size  ) 

void RE_OGLRender::setPointSprite ( bool  enable  ) 

void RE_OGLRender::setPrimitiveRestartIndex ( unsigned int  index  ) 

void RE_OGLRender::setProgramPointSize ( bool  enable  ) 

void RE_OGLRender::setReadBuffer ( RE_RenderBuf  buf  ) 

void RE_OGLRender::setReadFramebuffer ( RE_OGLFramebuffer fb  ) 

void RE_OGLRender::setReverseWinding ( int  reverse_winding  ) 

void RE_OGLRender::setSampleMask ( int  mask_number,
int  mask 
)

void RE_OGLRender::setSClearValue ( int  clearValue  ) 

void RE_OGLRender::setSFunction ( RE_SFunction  func,
int  ref,
int  mask 
)

void RE_OGLRender::setShaderOnlyMode ( bool  enable  ) 

bool RE_OGLRender::setShaderSampleRate ( fpreal  rate  ) 

void RE_OGLRender::setSOperation ( RE_SOperation  sfail,
RE_SOperation  dpfail,
RE_SOperation  dppass 
)

void RE_OGLRender::setSWriteMask ( int  writeMask  ) 

void RE_OGLRender::setTextureMode ( RE_TextureMode  mode,
int  textureunit = RE_ACTIVE_UNIT 
)

bool RE_OGLRender::setupShaderForLUT ( RE_Shader shader,
PXL_Lookup lookup,
int  lut_texture_unit = 1,
float  gamma = 1.0f,
bool  add_shader = true,
bool  for_gl32 = false 
)

void RE_OGLRender::setViewportFontOffset ( int  x,
int  y 
)

void RE_OGLRender::setWindow ( RE_Window  ) 

void RE_OGLRender::setZFunction ( RE_ZFunction  func  ) 

void RE_OGLRender::smoothBlendLines ( RE_SmoothMode  mode  ) 

void RE_OGLRender::smoothBlendLinesNoFlagChange ( bool  by_smooth  ) 

void RE_OGLRender::spherefW ( float  x,
float  y,
float  z,
float  r,
int  divs = 20 
)

void RE_OGLRender::sphereW ( float  x,
float  y,
float  z,
float  r,
int  divs = 20 
)

RE_CacheObject* RE_OGLRender::startObjectDefine (  ) 

RE_SmartObject* RE_OGLRender::startSmartObjectDefine (  ) 

void RE_OGLRender::swapbuffers (  ) 

void RE_OGLRender::t2DW ( const float  v[2]  )  [inline]

Definition at line 1435 of file RE_OGLRender.h.

void RE_OGLRender::t3DW ( const float  v[3]  )  [inline]

Definition at line 1436 of file RE_OGLRender.h.

void RE_OGLRender::t4DW ( const float  v[4]  )  [inline]

Definition at line 1437 of file RE_OGLRender.h.

void RE_OGLRender::textMove3S ( short  x,
short  y,
short  z 
)

void RE_OGLRender::textMove3W ( float  x,
float  y,
float  z 
)

Examples:
euclid/GR_Euclid.C.

void RE_OGLRender::textMoveS ( short  x,
short  y 
)

void RE_OGLRender::textMoveW ( float  x,
float  y 
)

void RE_OGLRender::toggleLighting ( int  onoff  ) 

void RE_OGLRender::toggleLightShading ( int  onoff  ) 

bool RE_OGLRender::trackingObjectShaderUsage (  )  const [inline]

Definition at line 2062 of file RE_OGLRender.h.

bool RE_OGLRender::trackingObjectTextureUsage (  )  const [inline]

Definition at line 2065 of file RE_OGLRender.h.

void RE_OGLRender::translate ( float  x,
float  y,
float  z = 0.0 
)

bool RE_OGLRender::tryLockContextForRender (  ) 

void RE_OGLRender::unbindTexture ( const RE_OGLTexture tex  ) 

void RE_OGLRender::undefineAllLights (  ) 

void RE_OGLRender::undefineLight ( unsigned  index  ) 

void RE_OGLRender::unlockContextAfterRender (  ) 

void RE_OGLRender::updateColorBufferWriting (  ) 

void RE_OGLRender::updateCurrentFramebuffer ( RE_OGLFramebuffer fb,
bool  for_draw 
)

void RE_OGLRender::updateDepthBufferWriting (  ) 

void RE_OGLRender::updateDepthClamp (  ) 

void RE_OGLRender::updateDepthTest (  ) 

void RE_OGLRender::updateFramebuffer (  ) 

void RE_OGLRender::updateScreensAndWorkAreas (  )  [inline, static]

Definition at line 1954 of file RE_OGLRender.h.

static void RE_OGLRender::updateScreenSize (  )  [static]

void RE_OGLRender::updateShader ( RE_Shader s  ) 

void RE_OGLRender::updateStencilState (  ) 

void RE_OGLRender::updateTextureState (  )  const

void RE_OGLRender::updateZFunction (  )  const

void RE_OGLRender::uploadUniformPickID (  ) 

int RE_OGLRender::useDisplayLists (  ) 

void RE_OGLRender::useFogCoord ( bool  onoff  ) 

void RE_OGLRender::useProjectiveTexture ( bool  ison,
RE_Light light,
RE_TextureCompress  format,
bool  limitres,
int  maxw,
int  maxh,
float  texturescale,
bool  mipmap,
int  aniso_samples 
)

void RE_OGLRender::useSampleMask ( bool  use  ) 

void RE_OGLRender::useSeamlessMaps ( bool  enable  ) 

bool RE_OGLRender::usingSampleMask (  )  const

bool RE_OGLRender::usingSeamlessMaps (  ) 

void RE_OGLRender::v2DI ( const int  v[2]  )  [inline]

Definition at line 1367 of file RE_OGLRender.h.

void RE_OGLRender::v2DS ( const short  v[2]  )  [inline]

Definition at line 1366 of file RE_OGLRender.h.

void RE_OGLRender::v2DW ( const float  v[2]  )  [inline]

Definition at line 1368 of file RE_OGLRender.h.

void RE_OGLRender::v3DI ( const int  v[3]  )  [inline]

Definition at line 1370 of file RE_OGLRender.h.

void RE_OGLRender::v3DS ( const short  v[3]  )  [inline]

Definition at line 1369 of file RE_OGLRender.h.

void RE_OGLRender::v3DW ( const float  v[3]  )  [inline]

Definition at line 1371 of file RE_OGLRender.h.

void RE_OGLRender::verifyState (  ) 

void RE_OGLRender::vertex2DI ( int  x,
int  y 
) [inline]

Definition at line 1377 of file RE_OGLRender.h.

void RE_OGLRender::vertex2DS ( short  x,
short  y 
) [inline]

Definition at line 1378 of file RE_OGLRender.h.

void RE_OGLRender::vertex2DW ( float  x,
float  y 
) [inline]

Definition at line 1379 of file RE_OGLRender.h.

void RE_OGLRender::vertex3DI ( int  x,
int  y,
int  z 
) [inline]

Definition at line 1380 of file RE_OGLRender.h.

void RE_OGLRender::vertex3DS ( short  x,
short  y,
short  z 
) [inline]

Definition at line 1382 of file RE_OGLRender.h.

void RE_OGLRender::vertex3DW ( float  x,
float  y,
float  z 
) [inline]

void RE_OGLRender::viewport2DI ( const UT_DimRect rect  ) 

void RE_OGLRender::viewportOrtho2DI ( const UT_DimRect rect  )  [inline]

Definition at line 461 of file RE_OGLRender.h.

int RE_OGLRender::virtualResX (  )  [inline, static]

Definition at line 1949 of file RE_OGLRender.h.

int RE_OGLRender::virtualResY (  )  [inline, static]

Definition at line 1950 of file RE_OGLRender.h.

void RE_OGLRender::waitForRetrace (  )  const

int RE_OGLRender::whichGLLightIs ( const RE_Light light  ) 

void RE_OGLRender::window3DW ( float  l,
float  r,
float  b,
float  t,
float  near,
float  far 
)

void RE_OGLRender::xorPixels (  ) 

void RE_OGLRender::zoomRaster ( float  xzoom,
float  yzoom = -1 
)


Member Data Documentation

Definition at line 1828 of file RE_OGLRender.h.

ut_thread_id_t RE_OGLRender::myNativeThread [protected]

Definition at line 1827 of file RE_OGLRender.h.

Definition at line 1821 of file RE_OGLRender.h.

Definition at line 1823 of file RE_OGLRender.h.


The documentation for this class was generated from the following file:

Generated on Thu Jan 31 00:31:57 2013 for HDK by  doxygen 1.5.9