This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
#include <ofGLBaseTypes.h>

Public Member Functions | |
virtual void | draw (const ofTexture &image, float x, float y, float z, float w, float h, float sx, float sy, float sw, float sh) const =0 |
Draw a texture with this renderer. | |
virtual void | draw (const ofVbo &vbo, GLuint drawMode, int first, int total) const =0 |
Draw vertices from a vertext buffer with this renderer. | |
virtual void | drawElements (const ofVbo &vbo, GLuint drawMode, int amt, int offsetelements) const =0 |
Draw vertices from a vertext buffer with this renderer. | |
virtual void | drawInstanced (const ofVbo &vbo, GLuint drawMode, int first, int total, int primCount) const =0 |
Draw vertices from a vertext buffer using instanced arrays. | |
virtual void | drawElementsInstanced (const ofVbo &vbo, GLuint drawMode, int amt, int primCount) const =0 |
Draw vertices from a vertex buffer using this renderer. | |
virtual void | draw (const ofVboMesh &mesh, ofPolyRenderMode renderType) const =0 |
Draw a vertex buffer mesh using a specific poly render mode. | |
virtual void | drawInstanced (const ofVboMesh &mesh, ofPolyRenderMode renderType, int primCount) const =0 |
Draw a vertex buffer mesh with instancing using a specific poly render mode. | |
virtual void | enableTextureTarget (const ofTexture &tex, int textureLocation)=0 |
Bind the texture at the texture location. | |
virtual void | disableTextureTarget (int textureTarget, int textureLocation)=0 |
Unbind the texture target at the texture location. | |
virtual void | setAlphaMaskTex (const ofTexture &tex)=0 |
Enable alpha masking using this texture as the mask source. | |
virtual void | disableAlphaMask ()=0 |
Disable this renderer's current alpha mask texture. | |
virtual void | enablePointSprites ()=0 |
Enable point sprites when using this renderer. | |
virtual void | disablePointSprites ()=0 |
Disable point sprites when using this renderer. | |
virtual void | enableLighting ()=0 |
Enable lighting with this renderer. | |
virtual void | disableLighting ()=0 |
Disable lighting with this renderer. | |
virtual void | enableSeparateSpecularLight ()=0 |
Enable seperate specular lighting parameters. | |
virtual void | disableSeparateSpecularLight ()=0 |
Disable seperate specular lighting parameters. | |
virtual bool | getLightingEnabled ()=0 |
Returns true if lighting is enabled with this renderer. | |
virtual void | setSmoothLighting (bool b)=0 |
Enable/disable smooth light shading. | |
virtual void | setGlobalAmbientColor (const ofColor &c)=0 |
Set the global ambient light color. | |
virtual void | enableLight (int lightIndex)=0 |
Enable a light at a specific index. | |
virtual void | disableLight (int lightIndex)=0 |
Disable a light at a specific index. | |
virtual void | setLightSpotlightCutOff (int lightIndex, float spotCutOff)=0 |
Set the spot light cutoff for a light at a specific index. | |
virtual void | setLightSpotConcentration (int lightIndex, float exponent)=0 |
Set the spotlight concentration (exponent) for a light at a specific index. | |
virtual void | setLightAttenuation (int lightIndex, float constant, float linear, float quadratic)=0 |
Set the light attenuation for a light at a specific index. | |
virtual void | setLightAmbientColor (int lightIndex, const ofFloatColor &c)=0 |
Set the ambient light color for a light at a specific index. | |
virtual void | setLightDiffuseColor (int lightIndex, const ofFloatColor &c)=0 |
Set the diffues light color for a light at a specific index. | |
virtual void | setLightSpecularColor (int lightIndex, const ofFloatColor &c)=0 |
Set the specular light color for a light at a specific index. | |
virtual void | setLightPosition (int lightIndex, const glm::vec4 &position)=0 |
Set the position of a light at a specific index. | |
virtual void | setLightSpotDirection (int lightIndex, const glm::vec4 &direction)=0 |
Set the spot direction of a light at a specific index. | |
virtual int | getGLVersionMajor ()=0 |
Get the major OpenGL version number this renderer is using. | |
virtual int | getGLVersionMinor ()=0 |
Get the minor OpenGL version number this renderer is using. | |
virtual void | saveScreen (int x, int y, int w, int h, ofPixels &pixels)=0 |
Fill an ofPixels object with a subsection of the current screen. | |
virtual void | saveFullViewport (ofPixels &pixels)=0 |
Fill an ofPixels object with the contents of the current screen. | |
virtual void | bind (const ofBaseMaterial &material)=0 |
Bind a material to be used with this renderer. | |
virtual void | bind (const ofShadow &shadow)=0 |
virtual void | bind (const ofShadow &shadow, GLenum aCubeFace)=0 |
virtual void | bind (const ofShader &shader)=0 |
Bind a shader to be used with this renderer. | |
virtual void | bind (const ofTexture &texture, int location)=0 |
Bind a texture to be used with this renderer at a location. | |
virtual void | bind (const ofBaseVideoDraws &video)=0 |
Bind a video's texture to this renderer. | |
virtual void | unbind (const ofBaseMaterial &material)=0 |
Unbind a material previously bound to this renderer with bind(). | |
virtual void | unbind (const ofShadow &shadow)=0 |
virtual void | unbind (const ofShadow &shadow, GLenum aCubeFace)=0 |
virtual void | unbind (const ofShader &shader)=0 |
Unbind a shader previously bound to this renderer with bind(). | |
virtual void | unbind (const ofTexture &texture, int location)=0 |
Unbind a texture previously bound to this renderer with bind(). | |
virtual void | unbind (const ofBaseVideoDraws &video)=0 |
Unbind a video previously bound to this renderer with bind(). | |
virtual void | bind (const ofFbo &fbo)=0 |
Bind a frame buffer to this renderer. | |
virtual void | unbind (const ofFbo &fbo)=0 |
Unbind a frame buffer previously bound to this renderer with bind(). | |
virtual void | bindForBlitting (const ofFbo &fboSrc, ofFbo &fboDst, int attachmentPoint=0)=0 |
Bind source and destination frame buffers for blitting. | |
virtual void | begin (const ofFbo &fbo, ofFboMode mode)=0 |
Begin using a frame buffer as this renderer's render surface. | |
virtual void | end (const ofFbo &fbo)=0 |
Stop using the specified frame buffer as this renderer's render surface. | |
virtual void | draw (const ofPolyline &poly) const=0 |
Draw a polyline with this renderer. | |
virtual void | draw (const ofPath &shape) const=0 |
Draw a path with this renderer. | |
virtual void | draw (const ofPath &shape, float x, float y) const |
Draw a path with this renderer at x and y . | |
virtual void | draw (const ofMesh &mesh, ofPolyRenderMode renderType) const |
Draw a mesh with this renderer using the renderType . | |
virtual void | draw (const ofMesh &vertexData, ofPolyRenderMode renderType, bool useColors, bool useTextures, bool useNormals) const=0 |
Draw a mesh with this renderer. | |
virtual void | draw (const of3dPrimitive &model, ofPolyRenderMode renderType) const=0 |
Draw a model with this renderer using the renderType . | |
virtual void | draw (const ofNode &model) const=0 |
Draw a node with this renderer using ofNode::customDraw(). | |
virtual void | draw (const ofImage &image, float x, float y, float z, float w, float h, float sx, float sy, float sw, float sh) const=0 |
Draw an image with this renderer. | |
virtual void | draw (const ofFloatImage &image, float x, float y, float z, float w, float h, float sx, float sy, float sw, float sh) const=0 |
Draw an image with this renderer. | |
virtual void | draw (const ofShortImage &image, float x, float y, float z, float w, float h, float sx, float sy, float sw, float sh) const=0 |
Draw an image with this renderer. | |
virtual void | draw (const ofBaseVideoDraws &video, float x, float y, float w, float h) const=0 |
Draw a video with this renderer. | |
virtual void | bind (const ofCamera &camera, const ofRectangle &viewport)=0 |
Bind camera's matrices to this renderer's matrix stack. | |
virtual void | unbind (const ofCamera &camera)=0 |
Unbind the camera from this renderer. | |
![]() | |
virtual | ~ofBaseRenderer () |
virtual const std::string & | getType ()=0 |
Get the string representation of the renderer type. | |
virtual void | startRender ()=0 |
Starts using this renderer as the rendering surface. | |
virtual void | finishRender ()=0 |
Stop using this renderer as the rendering surface. | |
virtual void | pushView ()=0 |
Push the current viewport into the renderer's viewport stack. | |
virtual void | popView ()=0 |
Pop the current viewport from the renderer's view stack. | |
virtual void | viewport (ofRectangle viewport)=0 |
Set this renderer's viewport using a rectangle. | |
virtual void | viewport (float x=0, float y=0, float width=-1, float height=-1, bool vflip=true)=0 |
Set this renderer's viewport manually using x, y, width, and height. | |
virtual void | setupScreenPerspective (float width=-1, float height=-1, float fov=60, float nearDist=0, float farDist=0)=0 |
Setup the renderer to use a perspective matrix. | |
virtual void | setupScreenOrtho (float width=-1, float height=-1, float nearDist=-1, float farDist=1)=0 |
Setup the renderer to use an orthographic matrix. | |
virtual void | setOrientation (ofOrientation orientation, bool vFlip)=0 |
set this renderer's orientation. | |
virtual ofRectangle | getCurrentViewport () const =0 |
Get this renderer's current viewport. | |
virtual ofRectangle | getNativeViewport () const =0 |
Get this renderer's current native viewport. | |
virtual int | getViewportWidth () const =0 |
Get the renderer's current viewport width. | |
virtual int | getViewportHeight () const =0 |
Get the renderer's current viewport width. | |
virtual bool | isVFlipped () const =0 |
Returns true if the renderer's current viewport is vertically flipped. | |
virtual void | setCoordHandedness (ofHandednessType handedness)=0 |
Set the coordinate handidness of this renderer. | |
virtual ofHandednessType | getCoordHandedness () const =0 |
Get the coordinate handidness of this renderer. | |
virtual void | pushMatrix ()=0 |
Pushes this renderer's matrix stack down by one. | |
virtual void | popMatrix ()=0 |
Pops this renderer's current matrix stack. | |
virtual glm::mat4 | getCurrentMatrix (ofMatrixMode matrixMode_) const =0 |
Get this renderer's current matrix for particular a matrix mode. | |
virtual glm::mat4 | getCurrentOrientationMatrix () const =0 |
Get this renderer's current orientation matrix. | |
virtual void | translate (float x, float y, float z=0)=0 |
Translate this renderer's current matrix by x, y, and z. | |
virtual void | translate (const glm::vec3 &p)=0 |
Translate this renderer's current matrix by a point. | |
virtual void | scale (float xAmnt, float yAmnt, float zAmnt=1)=0 |
Scale this renderer's current matrix by xAmnt, yAmnt, and zAmnt. | |
virtual void | rotateDeg (float degrees, float vecX, float vecY, float vecZ) |
Rotate this renderer's current matrix by degrees about a euler. | |
virtual void | rotateXDeg (float degrees) |
Rotate this renderer's current matrix by degrees about the x axis. | |
virtual void | rotateYDeg (float degrees) |
Rotate this renderer's current matrix by degrees about the y axis. | |
virtual void | rotateZDeg (float degrees) |
Rotate this renderer's current matrix by degrees about the z axis. | |
virtual void | rotateDeg (float degrees) |
Rotate this renderer's current matrix by degrees about the z axis. | |
virtual void | rotateRad (float degrees, float vecX, float vecY, float vecZ)=0 |
Rotate this renderer's current matrix by degrees about a euler. | |
virtual void | rotateXRad (float degrees)=0 |
Rotate this renderer's current matrix by degrees about the x axis. | |
virtual void | rotateYRad (float degrees)=0 |
Rotate this renderer's current matrix by degrees about the y axis. | |
virtual void | rotateZRad (float degrees)=0 |
Rotate this renderer's current matrix by degrees about the z axis. | |
virtual void | rotateRad (float degrees)=0 |
Rotate this renderer's current matrix by degrees about the z axis. | |
virtual void | matrixMode (ofMatrixMode mode)=0 |
Sets this renderer's current matrix mode. | |
virtual void | loadIdentityMatrix (void)=0 |
Load this renderer's identity matrix. | |
virtual void | loadMatrix (const glm::mat4 &m)=0 |
Load a matrix as this renderer's current matrix. | |
virtual void | loadMatrix (const float *m)=0 |
Load m as this renderer's current matrix. | |
virtual void | multMatrix (const glm::mat4 &m)=0 |
Multiply this renderer's current matrix by m . | |
virtual void | multMatrix (const float *m)=0 |
Multiply this renderer's current matrix by m . | |
virtual void | loadViewMatrix (const glm::mat4 &m)=0 |
Load m into this renderer's matrix stack as a view matrix. | |
virtual void | multViewMatrix (const glm::mat4 &m)=0 |
Multiply this renderer's view matrix by m . | |
virtual glm::mat4 | getCurrentViewMatrix () const =0 |
Get this renderer's current view matrix. | |
virtual glm::mat4 | getCurrentNormalMatrix () const =0 |
Get this renderer's current normal matrix. | |
virtual void | setupGraphicDefaults ()=0 |
setup the default graphics settings for this renderer. | |
virtual void | setupScreen ()=0 |
setup the default screen settings for this renderer. | |
virtual void | setRectMode (ofRectMode mode)=0 |
Set this renderer's rect mode. | |
virtual ofRectMode | getRectMode ()=0 |
Get this renderer's current rect mode. | |
virtual void | setFillMode (ofFillFlag fill)=0 |
set this renderer's fill flag. | |
virtual ofFillFlag | getFillMode ()=0 |
Get this renderer's current fill flag. | |
virtual void | setLineWidth (float lineWidth)=0 |
Set the line width this renderer should use when drawing lines. | |
virtual void | setDepthTest (bool depthTest)=0 |
Enable/disable depth testing with this renderer. | |
virtual void | setBlendMode (ofBlendMode blendMode)=0 |
Set this renderer's current blend mode. | |
virtual void | setLineSmoothing (bool smooth)=0 |
Enable/disable line smoothing for this renderer if it's supported. | |
virtual void | setCircleResolution (int res)=0 |
Set the resolution to use when drawing ellipses with this renderer. | |
virtual void | enableAntiAliasing ()=0 |
Enable this renderer to use anti-aliasing if it is supported. | |
virtual void | disableAntiAliasing ()=0 |
Disable this renderer from using anti-aliasing. | |
virtual void | setColor (int r, int g, int b)=0 |
Set the global color this renderer will use when drawing. | |
virtual void | setColor (int r, int g, int b, int a)=0 |
Set the global color this renderer will use when drawing. | |
virtual void | setColor (const ofColor &color)=0 |
Set the global color this renderer will use when drawing. | |
virtual void | setColor (const ofColor &color, int _a)=0 |
Set the global color this renderer will use when drawing. | |
virtual void | setColor (int gray)=0 |
Set the global color this renderer will use when drawing. | |
virtual void | setHexColor (int hexColor)=0 |
Set the global color this renderer will use when drawing. | |
virtual void | setBitmapTextMode (ofDrawBitmapMode mode)=0 |
Set this renderer's bitmap text mode. | |
virtual ofColor | getBackgroundColor ()=0 |
Get this renderer's current background color. | |
virtual void | setBackgroundColor (const ofColor &c)=0 |
Set this renderer's background color. | |
virtual void | background (const ofColor &c)=0 |
Immediately paint a background color to the screen. | |
virtual void | background (float brightness)=0 |
Immediately paint a grayscale background color to the screen. | |
virtual void | background (int hexColor, float _a=255.0f)=0 |
Immediately paint a grayscale background color to the screen. | |
virtual void | background (int r, int g, int b, int a=255)=0 |
Immediately paint a background color to the screen. | |
virtual void | setBackgroundAuto (bool bManual)=0 |
Enable/disable automatic redrawing of the background each frame. | |
virtual bool | getBackgroundAuto ()=0 |
Get the current auto redraw background setting for this renderer. | |
virtual void | clear ()=0 |
Clear this renderer's current color and bit depths. | |
virtual void | clear (float r, float g, float b, float a=0)=0 |
Clear this renderer's color and bit depths and replace them. | |
virtual void | clear (float brightness, float a=0)=0 |
Clear this renderer's color and bit depths replacing them. | |
virtual void | clearAlpha ()=0 |
Restore the alpha color to its full opacity value. | |
virtual void | drawLine (float x1, float y1, float z1, float x2, float y2, float z2) const =0 |
Draw a line between two 3D points. | |
virtual void | drawRectangle (float x, float y, float z, float w, float h) const =0 |
Draw a rectangle using a 3D point and a width and height. | |
virtual void | drawTriangle (float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3) const =0 |
Draw a triangle using three 3D points. | |
virtual void | drawCircle (float x, float y, float z, float radius) const =0 |
Draw a circle using a 3D point and a radius. | |
virtual void | drawEllipse (float x, float y, float z, float width, float height) const =0 |
Draw an ellipse using a 3D point, width, and height. | |
virtual void | drawString (std::string text, float x, float y, float z) const =0 |
Draw text with this renderer using the current bitmap text mode. | |
virtual void | drawString (const ofTrueTypeFont &font, std::string text, float x, float y) const =0 |
Draw text with this renderer using an ofTrueType font. | |
virtual ofPath & | getPath ()=0 |
Get a reference to the path used internally by this renderer. | |
virtual ofStyle | getStyle () const =0 |
Get this renderer's current style object. | |
virtual void | setStyle (const ofStyle &style)=0 |
Set this renderer's current style object. | |
virtual void | pushStyle ()=0 |
Push this renderer's current style into its internal style stack. | |
virtual void | popStyle ()=0 |
Pop this renderer's current style from its internal style stack. | |
virtual void | setCurveResolution (int resolution)=0 |
Set the resolution used when drawing curves with this renderer. | |
virtual void | setPolyMode (ofPolyWindingMode mode)=0 |
Set this renderer's poly winding mode. | |
virtual const of3dGraphics & | get3dGraphics () const =0 |
Get a const reference of this renderer's 3D graphics object. | |
virtual of3dGraphics & | get3dGraphics ()=0 |
Get a reference with this renderer's 3D graphics object. | |
virtual void | setPlaneResolution (int columns, int rows) |
Set this renderer's plane resolution using column and rows . | |
virtual glm::vec2 | getPlaneResolution () const |
Get this renderer's current plane resolution as a 2D vector. | |
virtual void | drawPlane (float x, float y, float width, float height) const |
Draw a plane with the renderer using x, y, width, and height. | |
virtual void | drawPlane (float x, float y, float z, float width, float height) const |
Draw a plane with the renderer using x, y, z, width, and height. | |
virtual void | drawPlane (const glm::vec3 &position, float width, float height) const |
Draw a plane with the renderer using a 3D point, width, and height. | |
virtual void | drawPlane (float width, float height) const |
Draw a plane with the renderer at the origin. | |
virtual void | setSphereResolution (int res) |
Set the point resolution to use when drawing a sphere with this renderer. | |
virtual int | getSphereResolution () const |
Get this renderer's current sphere resolution. | |
virtual void | drawSphere (float x, float y, float radius) const |
Draw a sphere with this renderer using x, y, and radius. | |
virtual void | drawSphere (float x, float y, float z, float radius) const |
Draw a sphere with this renderer using x, y, z, and radius. | |
virtual void | drawSphere (const glm::vec3 &position, float radius) const |
Draw a sphere with this renderer using a position point and radius. | |
virtual void | drawSphere (float radius) const |
Draw a sphere with the renderer at the defualt origin using radius. | |
virtual void | setIcoSphereResolution (int res) |
Set the point resolution to use when drawing an icosphere with this renderer. | |
virtual int | getIcoSphereResolution () const |
Get this renderer's current icosphere resolution. | |
virtual void | drawIcoSphere (float x, float y, float z, float radius) const |
Draw an icosphere with this renderer using x, y, and radius. | |
virtual void | drawIcoSphere (float x, float y, float radius) const |
Draw an icosphere with this renderer using x, y, and radius. | |
virtual void | drawIcoSphere (const glm::vec3 &position, float radius) const |
Draw an icosphere with this renderer using x, y, and radius. | |
virtual void | drawIcoSphere (float radius) const |
Draw an icosphere with the renderer at the origin using radius. | |
virtual void | setCylinderResolution (int radiusSegments, int heightSegments, int capSegments=2) |
Set this renderer's cylinder resolution. | |
virtual glm::vec3 | getCylinderResolution () const |
Get this renderer's cylinder resolution as a 3D vector. | |
virtual void | drawCylinder (float x, float y, float radius, float height) const |
Draw a cylinder with this renderer using x, y, radius, and height. | |
virtual void | drawCylinder (float x, float y, float z, float radius, float height) const |
Draw a cylinder with this renderer using x, y, z, radius, and height. | |
virtual void | drawCylinder (const glm::vec3 &position, float radius, float height) const |
Draw a cylinder with this renderer using position, radius, and height. | |
virtual void | drawCylinder (float radius, float height) const |
Draw a cylinder at the origin using radius and height. | |
virtual void | setConeResolution (int radiusSegments, int heightSegments, int capSegments=2) |
Set the resolution of a polygonized cone. | |
virtual glm::vec3 | getConeResolution () const |
Get this renderer's cone resolution as a 3D vector. | |
virtual void | drawCone (float x, float y, float z, float radius, float height) const |
Draw a cone with this renderer using x, y, z, radius, and height. | |
virtual void | drawCone (float x, float y, float radius, float height) const |
Draw a cone with this renderer using x, y, z, radius, and height. | |
virtual void | drawCone (const glm::vec3 &position, float radius, float height) const |
Draw a cone with this renderer using x, y, z, radius, and height. | |
virtual void | drawCone (float radius, float height) const |
Draw a cone at the origin using radius and height. | |
virtual void | setBoxResolution (int res) |
Set the resolution this renderer uses when drawing boxes. | |
virtual void | setBoxResolution (int resWidth, int resHeight, int resDepth) |
Set the resolution this renderer uses when drawing boxes. | |
virtual glm::vec3 | getBoxResolution () const |
Get this renderer's current box resolution as a 3D vector. | |
virtual void | drawBox (float x, float y, float z, float width, float height, float depth) const |
Draws a rectangular box using x, y, z, width, height, and depth. | |
virtual void | drawBox (float x, float y, float z, float size) const |
Draws a cube using x, y, z, and size. coordinates. | |
virtual void | drawBox (const glm::vec3 &position, float width, float height, float depth) const |
Draws a rectangular box using position, width, height and depth. | |
virtual void | drawBox (const glm::vec3 &position, float size) const |
Draws a cube with the specified size, starting from the specified position. | |
virtual void | drawBox (float size) const |
Draws a cube with the specified size at the origin. | |
virtual void | drawBox (float width, float height, float depth) const |
Draws a rectangular box with the specified dimensions, starting from the origin. | |
virtual void | drawAxis (float size) const |
Draw the coordinate system's axes with the renderer. | |
virtual void | drawGrid (float stepSize, size_t numberOfSteps, bool labels, bool x, bool y, bool z) const |
Draw the coordinate system's axes as a grid with the renderer. | |
virtual void | drawGridPlane (float stepSize, size_t numberOfSteps, bool labels) const |
Draw a coordinate system plane using the y and z axes. | |
virtual void | drawArrow (const glm::vec3 &start, const glm::vec3 &end, float headSize) const |
Draw an arrow between two 3D points. | |
virtual void | drawRotationAxes (float radius, float stripWidth, int circleRes) const |
Draw the coordinate system's axes with the renderer. | |
Member Function Documentation
◆ begin()
Begin using a frame buffer as this renderer's render surface.
The Render Surface
The fbo used with this method will be used by this renderer until it is unbound with unbind().
- Parameters
-
fbo The frame buffer to use as this renderer's render surface. mode The fbo mode to use.
- See also
- ofFboMode
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [1/8]
|
pure virtual |
Bind a material to be used with this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [2/8]
|
pure virtual |
Bind a video's texture to this renderer.
The video bound with this method will be used by this renderer until it is unbound with unbind().
- Parameters
-
video The video whose texture should be bound to this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [3/8]
|
virtual |
Bind camera's
matrices to this renderer's matrix stack.
Bind's the camera's
modelview and projection matrices to this renderer's matrix stack using viewport
. Should be followed with a call to unbind().
- Parameters
-
camera The camera to bind to this renderer. viewport The viewport to use when binding camera
to this renderer.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [4/8]
|
pure virtual |
Bind a frame buffer to this renderer.
The fbo bound with this method will be used as this renderer until it is unbound with unbind().
- Parameters
-
fbo The frame buffer whose texture should be bound to this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [5/8]
|
pure virtual |
Bind a shader to be used with this renderer.
The shader bound with this method will be used by this renderer until it is unbound with unbind().
- Parameters
-
shader The shader to bind to this renderer.
- See also
- glUseProgram()
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [6/8]
|
pure virtual |
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [7/8]
|
pure virtual |
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bind() [8/8]
|
pure virtual |
Bind a texture to be used with this renderer at a location.
The texture bound with this method will be used by this renderer until it is unbound with unbind().
- Parameters
-
texture The texture to bind with this renderer. location The texture location to bind this texture to.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ bindForBlitting()
|
pure virtual |
Bind source and destination frame buffers for blitting.
- Parameters
-
fboSrc The source frame buffer to bind for blitting. fboDst The destination frame buffer to bind for blitting. attachmentPoint The attatchement point to use when binding.
- Warning
- This method is unavailable when using OpenGLES.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ disableAlphaMask()
|
pure virtual |
Disable this renderer's current alpha mask texture.
- See also
- setAlphaMaskTex()
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ disableLight()
|
pure virtual |
Disable a light at a specific index.
- Parameters
-
lightIndex The index of the light to disable.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ disableLighting()
|
pure virtual |
Disable lighting with this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ disablePointSprites()
|
pure virtual |
Disable point sprites when using this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ disableSeparateSpecularLight()
|
pure virtual |
Disable seperate specular lighting parameters.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ disableTextureTarget()
|
pure virtual |
Unbind the texture target at the texture location.
textureTarget
can be accessed from an ofTexture with ofTexture::texData::textureTarget.
- Parameters
-
textureTarget The texture target to unbind from this renderer. textureLocation The location that texture was bound with.
- See also
- ofTextureData()
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [1/14]
|
virtual |
Draw a model
with this renderer using the renderType
.
renderType
defines how the model
will be rendered and may be: OF_MESH_POINTS, OF_MESH_WIREFRAME, OF_MESH_FILL
- Parameters
-
model The model to draw with this renderer. renderType The render mode to use when drawing the model
with this renderer.
- See also
- ofPolyRenderMode
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [2/14]
|
virtual |
Draw a video
with this renderer.
- Parameters
-
video The video with draw with this renderer. x The x coordinate to use to draw video
with this renderer.y The y coordinate to use to draw video
with this renderer.w The width to use to draw the video with this renderer. h The height to use to draw the video with this renderer.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [3/14]
|
virtual |
Draw an image
with this renderer.
- Parameters
-
image The image to draw with this renderer. x The x coordinate to use to draw image
with this renderer.y The y coordinate to use to draw image
with this renderer.z The z coordinate to use to draw image
with this renderer.w The width to use to draw image
with this renderer.h The height to use to draw image
with this renderer.sx The subsection x axis offset within the image texture. sy The subsection y axis offset within the image texture. sw The subsection width offset within the image texture. sh The subsection height offset within the image texture.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [4/14]
|
virtual |
Draw an image
with this renderer.
- Parameters
-
image The image to draw with this renderer. x The x coordinate to use when drawing image
with this renderer.y The y coordinate to use to draw image
with this renderer.z The z coordinate to use to drawing image
with this renderer.w The width to use to draw the image
with this renderer.h The height to use to draw the image
with this renderer.sx The subsection x axis offset within the image texture. sy The subsection y axis offset within the image texture. sw The subsection width offset within the image texture. sh The subsection height offset within the image texture.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [5/14]
|
virtual |
Draw a mesh
with this renderer using the renderType
.
renderType
defines how the mesh
will be rendered and may be: OF_MESH_POINTS, OF_MESH_WIREFRAME, OF_MESH_FILL
- Parameters
-
mesh The mesh to draw with this renderer. renderType The render mode to use to draw mesh
with this renderer.
- See also
- ofPolyRenderMode
Reimplemented from ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLProgrammableRenderer, ofGLRenderer, and ofGLRenderer.
◆ draw() [6/14]
|
virtual |
Draw a mesh with this renderer.
renderType
defines how the mesh
will be rendered and may be: OF_MESH_POINTS, OF_MESH_WIREFRAME, OF_MESH_FILL
- Parameters
-
vertexData The mesh to draw with this renderer. renderType The render mode to use to draw vertexData
to this renderer.useColors True to use per-vertex coloring to draw the vertexData
.useTextures True to use texture coordinates to draw the vertexData
.useNormals True to use normals to draw the vertexData
.
- See also
- ofPolyRenderMode
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [7/14]
|
virtual |
Draw a node with this renderer using ofNode::customDraw().
- Parameters
-
model The node to draw with this renderer.
- See also
- ofNode::customDraw()
Implements ofBaseRenderer.
Reimplemented in ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, and ofGLProgrammableRenderer.
◆ draw() [8/14]
|
virtual |
Draw a path with this renderer.
- Parameters
-
shape The path to draw with this renderer.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [9/14]
|
inlinevirtual |
Draw a path with this renderer at x
and y
.
- Parameters
-
shape The path to draw with this renderer. x The x coordinate to use to draw shape
.y The y coordinate to use to draw shape
.
Reimplemented from ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLProgrammableRenderer, ofGLRenderer, and ofGLRenderer.
◆ draw() [10/14]
|
virtual |
Draw a polyline with this renderer.
- Parameters
-
poly The polyline to draw with this renderer.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [11/14]
|
virtual |
Draw an image
with this renderer.
- Parameters
-
image The image to draw with this renderer. x The x coordinate to use to draw image
with this renderer.y The y coordinate to use to draw image
with this renderer.z The z coordinate to use to draw image
with this renderer.w The width to use when drawing the image with this renderer. h The height to use when drawing the image with this renderer. sx The subsection x axis offset within the image texture. sy The subsection y axis offset within the image texture. sw The subsection width offset within the image texture. sh The subsection height offset within the image texture.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [12/14]
|
pure virtual |
Draw a texture with this renderer.
Drawing
- Parameters
-
image The texture to draw with this renderer. x The x coordinate to use when drawing the texture with this renderer. y The y coordinate to use to draw the texture with this renderer. z The z coordinate to use to draw the texture with this renderer. w The width to use to draw the the texture with this renderer. h The height to use to draw the the texture with this renderer. sx The subsection x axis offset within the texture. sy The subsection y axis offset within the texture. sw The subsection width offset within the texture. sh The subsection height offset within the texture.
Implemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [13/14]
|
pure virtual |
Draw vertices from a vertext buffer with this renderer.
drawMode
may be any of the OpenGL primitive draw modes: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES
ofGetGLPrimitiveMode() can also be used to get the GLuint draw mode from an ofPrimitiveMode.
- Parameters
-
vbo The vertext buffer object to draw vertices from with this renderer. drawMode OpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer. first The index of the first vertex to draw from vbo
.total The total number of indices to draw from vbo
.
- See also
- ofGetGLPrimitiveMode()
- glDrawArrays()
- https://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawArrays.xml
Implemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ draw() [14/14]
|
pure virtual |
Draw a vertex buffer mesh using a specific poly render mode.
renderType
defines how the mesh
will be rendered and may be: OF_MESH_POINTS, OF_MESH_WIREFRAME, OF_MESH_FILL
- Parameters
-
mesh The vertex buffer mesh to draw with this renderer. renderType The poly render mode to use when drawing mesh
with this renderer.
- See also
- ofPolyRenderMode
Implemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.
◆ drawElements()
|
pure virtual |
Draw vertices from a vertext buffer with this renderer.
drawMode
may be any of the OpenGL primitive draw modes: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES
ofGetGLPrimitiveMode() can also be used to get the GLuint draw mode from an ofPrimitiveMode.
- Parameters
-
vbo The vertext buffer object to draw vertices from with this renderer. drawMode OpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer. amt The number of elements to be rendered. offsetelements The number of elements (indices) offset from the first element to start drawing from.
- See also
- ofGetGLPrimitiveMode()
- glDrawElements()
- http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-9-vbo-indexing/
- https://www.opengl.org/sdk/docs/man/html/glDrawElements.xhtml
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ drawElementsInstanced()
|
pure virtual |
Draw vertices from a vertex buffer using this renderer.
drawMode
may be any of the OpenGL primitive draw modes: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES
ofGetGLPrimitiveMode() can also be used to get the GLuint draw mode from an ofPrimitiveMode.
- Parameters
-
vbo The vertext buffer object to draw vertices from with this renderer. drawMode OpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer. amt The number of elements to be rendered. primCount Specifies the number of instances of the specified range of indices to be rendered.
- Warning
- This method may be unsupported when using OpenGLES.
- See also
- ofGetGLPrimitiveMode()
- glDrawElementsInstanced()
- https://www.opengl.org/sdk/docs/man/html/glDrawElementsInstanced.xhtml
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ drawInstanced() [1/2]
|
pure virtual |
Draw vertices from a vertext buffer using instanced arrays.
drawMode
may be any of the OpenGL primitive draw modes: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES
ofGetGLPrimitiveMode() can also be used to get the GLuint draw mode from an ofPrimitiveMode.
- Parameters
-
vbo The vertext buffer object to draw vertices from with this renderer. drawMode OpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer. first The index of the first vertex to draw from vbo
.total The total number of indices to draw from vbo
.primCount Specifies the number of instances of the specified range of indices to be rendered.
- Warning
- This method may be unsupported when using OpenGLES.
- See also
- ofGetGLPrimitiveMode()
- glDrawArraysInstanced()
- https://www.khronos.org/opengles/sdk/docs/man3/html/glDrawArraysInstanced.xhtml
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ drawInstanced() [2/2]
|
pure virtual |
Draw a vertex buffer mesh with instancing using a specific poly render mode.
renderType
defines how the mesh
will be rendered and may be: OF_MESH_POINTS, OF_MESH_WIREFRAME, OF_MESH_FILL
- Parameters
-
mesh The vertext buffer mesh to draw vertices from with this renderer. renderType The poly render mode to use when drawing mesh
with this renderer.primCount Specifies the number of instances of the specified range of indices to be rendered.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ enableLight()
|
pure virtual |
Enable a light at a specific index.
- Parameters
-
lightIndex The index of the light to enable.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ enableLighting()
|
pure virtual |
Enable lighting with this renderer.
Lighting
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ enablePointSprites()
|
pure virtual |
Enable point sprites when using this renderer.
Sprites
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ enableSeparateSpecularLight()
|
pure virtual |
Enable seperate specular lighting parameters.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ enableTextureTarget()
|
pure virtual |
Bind the texture at the texture location.
Textures
- Parameters
-
tex The texture to bind with this renderer. textureLocation The location to bind this texture.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ end()
|
pure virtual |
Stop using the specified frame buffer as this renderer's render surface.
- Parameters
-
fbo An fbo that is currently being used as this renderer's render surface with a call to begin().
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ getGLVersionMajor()
|
pure virtual |
Get the major OpenGL version number this renderer is using.
Version
- Returns
- The major OpenGL version number this renderer is using.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ getGLVersionMinor()
|
pure virtual |
Get the minor OpenGL version number this renderer is using.
- Returns
- The minor OpenGL version number this renderer is using.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ getLightingEnabled()
|
pure virtual |
Returns true if lighting is enabled with this renderer.
- Returns
- True if lighting is enabled with this renderer.
- See also
- enableLighting()
- disableLighting()
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ saveFullViewport()
|
pure virtual |
Fill an ofPixels object with the contents of the current screen.
- Parameters
-
pixels The pixels object to fill with the pixels from the screen.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ saveScreen()
|
pure virtual |
Fill an ofPixels object with a subsection of the current screen.
Screen Pixels
- Parameters
-
x The x coordinate to use when specifying the bounds of the subsection of the screen to save into pixels
.y The y coordinate to use when specifying the bounds of the subsection of the screen to save into pixels
.w The width to use when specifying the bounds of the subsection of the screen to save into pixels
.h The height to use when specifying the bounds of the subsection of the screen to save into pixels
.pixels The pixels object to fill with the pixels from the screen.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setAlphaMaskTex()
|
pure virtual |
Enable alpha masking using this texture as the mask source.
tex
should be a grayscale image whose pixels will be used to set the alpha value of the previously bound texture or framebuffer. Darker pixels cause transparency in the masked image. Disable a mask being used in this way with disableAlphaMask().
- Parameters
-
tex The texture to use as the alpha mask.
- See also
- disableAlphaMask()
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setGlobalAmbientColor()
|
pure virtual |
Set the global ambient light color.
- Parameters
-
c The color to set this renderer to use as ambient lighting.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightAmbientColor()
|
pure virtual |
Set the ambient light color for a light at a specific index.
- Parameters
-
lightIndex The index of the light to set the ambient color of. c The color to set the ambient light.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightAttenuation()
|
pure virtual |
Set the light attenuation for a light at a specific index.
- Parameters
-
lightIndex The index of the light whose spot concentration will be set. constant Set the constant attenuation factor of the light at lightIndex
.linear Set the linear attenuation factor of the light at lightIndex
.quadratic Set the quadratic attenuation factor of the light at lightIndex
.
- See also
- glLightf()
- GL_CONSTANT_ATTENUATION
- GL_LINEAR_ATTENUATION
- GL_QUADRATIC_ATTENUATION
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightDiffuseColor()
|
pure virtual |
Set the diffues light color for a light at a specific index.
- Parameters
-
lightIndex The index of the light to set the diffuse color of. c The color to set the diffuse light.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightPosition()
|
pure virtual |
Set the position of a light at a specific index.
- Parameters
-
lightIndex The index of the light to set the position color of. position A vector of four values that specify the position of the light in homogeneous object coordinates.
- See also
- GL_POSITION
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightSpecularColor()
|
pure virtual |
Set the specular light color for a light at a specific index.
- Parameters
-
lightIndex The index of the light to set the specular color of. c The color to set the specular light.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightSpotConcentration()
|
pure virtual |
Set the spotlight concentration (exponent) for a light at a specific index.
- Parameters
-
lightIndex The index of the light whose spot concentration will be set. exponent The spot light exponent value.
- See also
- GL_SPOT_EXPONENT
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightSpotDirection()
|
pure virtual |
Set the spot direction of a light at a specific index.
- Parameters
-
lightIndex The index of the light to set the spot direction of. direction A vector of four values that specify the direction of the light in homogeneous object coordinates.
- See also
- GL_SPOT_DIRECTION
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setLightSpotlightCutOff()
|
pure virtual |
Set the spot light cutoff for a light at a specific index.
- Parameters
-
lightIndex The index of the light whose spot cutoff will be set. spotCutOff The spot light cut off value.
- See also
- GL_SPOT_CUTOFF
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ setSmoothLighting()
|
pure virtual |
Enable/disable smooth light shading.
- Parameters
-
b True to enable smooth light shading.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [1/8]
|
pure virtual |
Unbind a material previously bound to this renderer with bind().
- Parameters
-
material The material that is currently bound to this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [2/8]
|
pure virtual |
Unbind a video previously bound to this renderer with bind().
- Parameters
-
video The video that is currently bound to this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [3/8]
|
virtual |
Unbind the camera from this renderer.
- Parameters
-
camera The camera to unbind from this renderer.
Implements ofBaseRenderer.
Reimplemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [4/8]
|
pure virtual |
Unbind a frame buffer previously bound to this renderer with bind().
- Parameters
-
fbo The frame buffer that is currently bound to this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [5/8]
|
pure virtual |
Unbind a shader previously bound to this renderer with bind().
- Parameters
-
shader The shader that is currently bound to this renderer.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [6/8]
|
pure virtual |
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [7/8]
|
pure virtual |
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
◆ unbind() [8/8]
|
pure virtual |
Unbind a texture previously bound to this renderer with bind().
- Parameters
-
texture The texture that is currently bound to this renderer. location The location texture
was bound at.
Implemented in ofGLProgrammableRenderer, and ofGLRenderer.
The documentation for this class was generated from the following file:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/gl/ofGLBaseTypes.h