gl.h File Reference

Namespaces

 DD
 Private support functions for OpHints.
 
 DD::Image
 

Macros

#define GL_GLEXT_PROTOTYPES
 
#define mFnGlCall(fun)
 

Enumerations

enum  {
  XY, XZ, YZ, YX,
  ZX, ZY
}
 

Functions

void DD::Image::glColor (unsigned)
 
void DD::Image::glColor4 (unsigned)
 
void DD::Image::glColor4fvLUT (const float *)
 
void DD::Image::gl_text (const char *str)
 
void DD::Image::gl_text (const char *str, int n)
 
void DD::Image::gl_text (const char *str, float x, float y, float z=0)
 
void DD::Image::gl_text (const char *str, int n, float x, float y, float z=0)
 
void DD::Image::gl_text (const char *str, int x, int y, int z=0)
 
void DD::Image::gl_text (const char *str, int n, int x, int y, int z=0)
 
void DD::Image::gl_text (const char *str, double x, double y, double z=0)
 
void DD::Image::gl_text (const char *str, int n, double x, double y, double z=0)
 
void DD::Image::gl_enable_line_smoothing (float width)
 
void DD::Image::gl_disable_line_smoothing ()
 
void DD::Image::gl_circlef (float x, float y, float z, float diam, int plane, bool filled=false, float normal=1.0f)
 
void DD::Image::gl_circlefAsTris (float x, float y, float z, float diam, float lineWidth, int plane, bool filled=false, float normal=1.0f)
 
void DD::Image::gl_cylinderf (float x, float y, float z, float width, float bottomCapDiameter, float topCapDiameter, int plane, bool capped=true, bool filled=false)
 
void DD::Image::gl_conef (float x, float y, float z, float length, float diam, int plane)
 
void DD::Image::gl_sphere (float radius=0.5)
 
void DD::Image::gl_planef (float x, float y, float z, float width, float height, int plane)
 
void DD::Image::gl_gridf (float x, float y, float z, int numW, int numH, int plane)
 
void DD::Image::gl_quadi (int x, int y, int right, int top)
 gl_quadi Draws a filled quad (int version). More...
 
void DD::Image::gl_rectangle (float x, float y, float r, float t)
 
void DD::Image::gl_rectangle (int x, int y, int r, int t)
 
void DD::Image::gl_circle (float x, float y, float radius, float intervalDegrees)
 
void DD::Image::gl_ellipse (float x, float y, float xradius, float yradius, unsigned nPoints)
 
void DD::Image::gl_bracket (float x, float y, float r, float t, float sx, float sy)
 
void DD::Image::gl_crossf (float x, float y, float z, float size, int plane)
 
void DD::Image::gl_crossi (int x, int y, int z, int size, int plane)
 
void DD::Image::gl_axis ()
 
void DD::Image::gl_axis_label ()
 
void DD::Image::gl_boxf (float x, float y, float n, float r, float t, float f, bool filled=false)
 
void DD::Image::gl_cubef (float x, float y, float z, float width)
 
void DD::Image::gl_bezierf (float x, float y, float x1, float y1, float x2, float y2, float x3, float y3, float scale=1)
 
void DD::Image::gl_polygon (const DD::Image::Vector2 *points, size_t nPoints, DD::Image::Vector2 offset=DD::Image::Vector2())
 
void DD::Image::gl_drawTextTopLeftOrthogonal (const std::string &text, DD::Image::ViewerContext *ctx, bool redColour=true)
 
const char * DD::Image::gl_errorstring (int errorcode)
 
int DD::Image::glGetErrors (const char *message=nullptr)
 
bool DD::Image::GLProject (float x, float y, float z, const DD::Image::Matrix4 &m, const DD::Image::Box &vp, float *winx, float *winy, float *winz)
 
bool DD::Image::GLUnproject (float wx, float wy, float wz, const DD::Image::Matrix4 &m, const DD::Image::Box &vp, float *objx, float *objy, float *objz)
 
DD::Image::Box DD::Image::GLProjectCube (const DD::Image::Box3 &cube, const DD::Image::Matrix4 &m, const DD::Image::Box &vp)
 
void DD::Image::GLZOffsetProjection (float offsetAmount)
 

Detailed Description

This header file allows a plugin to include the OpenGL header file in a portable way, even though MicroSoft tried to break it. It also defines some OpenGL convienence functions.



©2021 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk