reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofBaseGLRenderer Class Referenceabstract

#include <ofGLBaseTypes.h>

Inheritance diagram for ofBaseGLRenderer:
ofBaseRenderer ofGLProgrammableRenderer ofGLRenderer

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.
 
- Public Member Functions inherited from ofBaseRenderer
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 ofPathgetPath ()=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 of3dGraphicsget3dGraphics () const =0
 Get a const reference of this renderer's 3D graphics object.
 
virtual of3dGraphicsget3dGraphics ()=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()

virtual void ofBaseGLRenderer::begin ( const ofFbo fbo,
ofFboMode  mode 
)
pure virtual

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
fboThe frame buffer to use as this renderer's render surface.
modeThe fbo mode to use.
See also
ofFboMode

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [1/8]

virtual void ofBaseGLRenderer::bind ( const ofBaseMaterial material)
pure virtual

Bind a material to be used with this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [2/8]

virtual void ofBaseGLRenderer::bind ( const ofBaseVideoDraws video)
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
videoThe video whose texture should be bound to this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [3/8]

virtual void ofBaseRenderer::bind ( const ofCamera camera,
const ofRectangle viewport 
)
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
cameraThe camera to bind to this renderer.
viewportThe viewport to use when binding camera to this renderer.

Implements ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [4/8]

virtual void ofBaseGLRenderer::bind ( const ofFbo fbo)
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
fboThe frame buffer whose texture should be bound to this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [5/8]

virtual void ofBaseGLRenderer::bind ( const ofShader shader)
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
shaderThe shader to bind to this renderer.
See also
glUseProgram()

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [6/8]

virtual void ofBaseGLRenderer::bind ( const ofShadow shadow)
pure virtual

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [7/8]

virtual void ofBaseGLRenderer::bind ( const ofShadow shadow,
GLenum  aCubeFace 
)
pure virtual

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bind() [8/8]

virtual void ofBaseGLRenderer::bind ( const ofTexture texture,
int  location 
)
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
textureThe texture to bind with this renderer.
locationThe texture location to bind this texture to.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ bindForBlitting()

virtual void ofBaseGLRenderer::bindForBlitting ( const ofFbo fboSrc,
ofFbo fboDst,
int  attachmentPoint = 0 
)
pure virtual

Bind source and destination frame buffers for blitting.

Parameters
fboSrcThe source frame buffer to bind for blitting.
fboDstThe destination frame buffer to bind for blitting.
attachmentPointThe attatchement point to use when binding.
Warning
This method is unavailable when using OpenGLES.
See also
https://en.wikipedia.org/wiki/Bit_blit

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ disableAlphaMask()

virtual void ofBaseGLRenderer::disableAlphaMask ( )
pure virtual

Disable this renderer's current alpha mask texture.

See also
setAlphaMaskTex()

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ disableLight()

virtual void ofBaseGLRenderer::disableLight ( int  lightIndex)
pure virtual

Disable a light at a specific index.

Parameters
lightIndexThe index of the light to disable.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ disableLighting()

virtual void ofBaseGLRenderer::disableLighting ( )
pure virtual

Disable lighting with this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ disablePointSprites()

virtual void ofBaseGLRenderer::disablePointSprites ( )
pure virtual

Disable point sprites when using this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ disableSeparateSpecularLight()

virtual void ofBaseGLRenderer::disableSeparateSpecularLight ( )
pure virtual

Disable seperate specular lighting parameters.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ disableTextureTarget()

virtual void ofBaseGLRenderer::disableTextureTarget ( int  textureTarget,
int  textureLocation 
)
pure virtual

Unbind the texture target at the texture location.

textureTarget can be accessed from an ofTexture with ofTexture::texData::textureTarget.

Parameters
textureTargetThe texture target to unbind from this renderer.
textureLocationThe location that texture was bound with.
See also
ofTextureData()

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ draw() [1/14]

virtual void ofBaseRenderer::draw ( const of3dPrimitive model,
ofPolyRenderMode  renderType 
) const
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
modelThe model to draw with this renderer.
renderTypeThe 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 void ofBaseRenderer::draw ( const ofBaseVideoDraws video,
float  x,
float  y,
float  w,
float  h 
) const
virtual

Draw a video with this renderer.

Parameters
videoThe video with draw with this renderer.
xThe x coordinate to use to draw video with this renderer.
yThe y coordinate to use to draw video with this renderer.
wThe width to use to draw the video with this renderer.
hThe 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 void ofBaseRenderer::draw ( const ofFloatImage image,
float  x,
float  y,
float  z,
float  w,
float  h,
float  sx,
float  sy,
float  sw,
float  sh 
) const
virtual

Draw an image with this renderer.

Parameters
imageThe image to draw with this renderer.
xThe x coordinate to use to draw image with this renderer.
yThe y coordinate to use to draw image with this renderer.
zThe z coordinate to use to draw image with this renderer.
wThe width to use to draw image with this renderer.
hThe height to use to draw image with this renderer.
sxThe subsection x axis offset within the image texture.
syThe subsection y axis offset within the image texture.
swThe subsection width offset within the image texture.
shThe subsection height offset within the image texture.

Implements ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.

◆ draw() [4/14]

virtual void ofBaseRenderer::draw ( const ofImage image,
float  x,
float  y,
float  z,
float  w,
float  h,
float  sx,
float  sy,
float  sw,
float  sh 
) const
virtual

Draw an image with this renderer.

Parameters
imageThe image to draw with this renderer.
xThe x coordinate to use when drawing image with this renderer.
yThe y coordinate to use to draw image with this renderer.
zThe z coordinate to use to drawing image with this renderer.
wThe width to use to draw the image with this renderer.
hThe height to use to draw the image with this renderer.
sxThe subsection x axis offset within the image texture.
syThe subsection y axis offset within the image texture.
swThe subsection width offset within the image texture.
shThe subsection height offset within the image texture.

Implements ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.

◆ draw() [5/14]

void ofBaseRenderer::draw ( const ofMesh mesh,
ofPolyRenderMode  renderType 
) const
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
meshThe mesh to draw with this renderer.
renderTypeThe 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 void ofBaseRenderer::draw ( const ofMesh vertexData,
ofPolyRenderMode  renderType,
bool  useColors,
bool  useTextures,
bool  useNormals 
) const
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
vertexDataThe mesh to draw with this renderer.
renderTypeThe render mode to use to draw vertexData to this renderer.
useColorsTrue to use per-vertex coloring to draw the vertexData.
useTexturesTrue to use texture coordinates to draw the vertexData.
useNormalsTrue 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 void ofBaseRenderer::draw ( const ofNode model) const
virtual

Draw a node with this renderer using ofNode::customDraw().

Parameters
modelThe 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 void ofBaseRenderer::draw ( const ofPath shape) const
virtual

Draw a path with this renderer.

Parameters
shapeThe path to draw with this renderer.

Implements ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.

◆ draw() [9/14]

virtual void ofBaseRenderer::draw ( const ofPath shape,
float  x,
float  y 
) const
inlinevirtual

Draw a path with this renderer at x and y.

Parameters
shapeThe path to draw with this renderer.
xThe x coordinate to use to draw shape.
yThe y coordinate to use to draw shape.

Reimplemented from ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, ofGLProgrammableRenderer, ofGLRenderer, and ofGLRenderer.

◆ draw() [10/14]

virtual void ofBaseRenderer::draw ( const ofPolyline poly) const
virtual

Draw a polyline with this renderer.

Parameters
polyThe polyline to draw with this renderer.

Implements ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.

◆ draw() [11/14]

virtual void ofBaseRenderer::draw ( const ofShortImage image,
float  x,
float  y,
float  z,
float  w,
float  h,
float  sx,
float  sy,
float  sw,
float  sh 
) const
virtual

Draw an image with this renderer.

Parameters
imageThe image to draw with this renderer.
xThe x coordinate to use to draw image with this renderer.
yThe y coordinate to use to draw image with this renderer.
zThe z coordinate to use to draw image with this renderer.
wThe width to use when drawing the image with this renderer.
hThe height to use when drawing the image with this renderer.
sxThe subsection x axis offset within the image texture.
syThe subsection y axis offset within the image texture.
swThe subsection width offset within the image texture.
shThe subsection height offset within the image texture.

Implements ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.

◆ draw() [12/14]

virtual void ofBaseGLRenderer::draw ( const ofTexture image,
float  x,
float  y,
float  z,
float  w,
float  h,
float  sx,
float  sy,
float  sw,
float  sh 
) const
pure virtual

Draw a texture with this renderer.

Drawing

Parameters
imageThe texture to draw with this renderer.
xThe x coordinate to use when drawing the texture with this renderer.
yThe y coordinate to use to draw the texture with this renderer.
zThe z coordinate to use to draw the texture with this renderer.
wThe width to use to draw the the texture with this renderer.
hThe height to use to draw the the texture with this renderer.
sxThe subsection x axis offset within the texture.
syThe subsection y axis offset within the texture.
swThe subsection width offset within the texture.
shThe subsection height offset within the texture.

Implemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.

◆ draw() [13/14]

virtual void ofBaseGLRenderer::draw ( const ofVbo vbo,
GLuint  drawMode,
int  first,
int  total 
) const
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
vboThe vertext buffer object to draw vertices from with this renderer.
drawModeOpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer.
firstThe index of the first vertex to draw from vbo.
totalThe 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]

virtual void ofBaseGLRenderer::draw ( const ofVboMesh mesh,
ofPolyRenderMode  renderType 
) const
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
meshThe vertex buffer mesh to draw with this renderer.
renderTypeThe poly render mode to use when drawing mesh with this renderer.
See also
ofPolyRenderMode

Implemented in ofGLProgrammableRenderer, ofGLRenderer, ofGLProgrammableRenderer, and ofGLRenderer.

◆ drawElements()

virtual void ofBaseGLRenderer::drawElements ( const ofVbo vbo,
GLuint  drawMode,
int  amt,
int  offsetelements 
) const
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
vboThe vertext buffer object to draw vertices from with this renderer.
drawModeOpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer.
amtThe number of elements to be rendered.
offsetelementsThe 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()

virtual void ofBaseGLRenderer::drawElementsInstanced ( const ofVbo vbo,
GLuint  drawMode,
int  amt,
int  primCount 
) const
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
vboThe vertext buffer object to draw vertices from with this renderer.
drawModeOpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer.
amtThe number of elements to be rendered.
primCountSpecifies 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]

virtual void ofBaseGLRenderer::drawInstanced ( const ofVbo vbo,
GLuint  drawMode,
int  first,
int  total,
int  primCount 
) const
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
vboThe vertext buffer object to draw vertices from with this renderer.
drawModeOpenGL primitive draw mode to use when drawing the vbo's vertices with this renderer.
firstThe index of the first vertex to draw from vbo.
totalThe total number of indices to draw from vbo.
primCountSpecifies 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]

virtual void ofBaseGLRenderer::drawInstanced ( const ofVboMesh mesh,
ofPolyRenderMode  renderType,
int  primCount 
) const
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
meshThe vertext buffer mesh to draw vertices from with this renderer.
renderTypeThe poly render mode to use when drawing mesh with this renderer.
primCountSpecifies the number of instances of the specified range of indices to be rendered.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ enableLight()

virtual void ofBaseGLRenderer::enableLight ( int  lightIndex)
pure virtual

Enable a light at a specific index.

Parameters
lightIndexThe index of the light to enable.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ enableLighting()

virtual void ofBaseGLRenderer::enableLighting ( )
pure virtual

Enable lighting with this renderer.

Lighting

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ enablePointSprites()

virtual void ofBaseGLRenderer::enablePointSprites ( )
pure virtual

Enable point sprites when using this renderer.

Sprites

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ enableSeparateSpecularLight()

virtual void ofBaseGLRenderer::enableSeparateSpecularLight ( )
pure virtual

Enable seperate specular lighting parameters.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ enableTextureTarget()

virtual void ofBaseGLRenderer::enableTextureTarget ( const ofTexture tex,
int  textureLocation 
)
pure virtual

Bind the texture at the texture location.

Textures

Parameters
texThe texture to bind with this renderer.
textureLocationThe location to bind this texture.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ end()

virtual void ofBaseGLRenderer::end ( const ofFbo fbo)
pure virtual

Stop using the specified frame buffer as this renderer's render surface.

Parameters
fboAn fbo that is currently being used as this renderer's render surface with a call to begin().

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ getGLVersionMajor()

virtual int ofBaseGLRenderer::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()

virtual int ofBaseGLRenderer::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()

virtual bool ofBaseGLRenderer::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()

virtual void ofBaseGLRenderer::saveFullViewport ( ofPixels pixels)
pure virtual

Fill an ofPixels object with the contents of the current screen.

Parameters
pixelsThe pixels object to fill with the pixels from the screen.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ saveScreen()

virtual void ofBaseGLRenderer::saveScreen ( int  x,
int  y,
int  w,
int  h,
ofPixels pixels 
)
pure virtual

Fill an ofPixels object with a subsection of the current screen.

Screen Pixels

Parameters
xThe x coordinate to use when specifying the bounds of the subsection of the screen to save into pixels.
yThe y coordinate to use when specifying the bounds of the subsection of the screen to save into pixels.
wThe width to use when specifying the bounds of the subsection of the screen to save into pixels.
hThe height to use when specifying the bounds of the subsection of the screen to save into pixels.
pixelsThe pixels object to fill with the pixels from the screen.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setAlphaMaskTex()

virtual void ofBaseGLRenderer::setAlphaMaskTex ( const ofTexture tex)
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
texThe texture to use as the alpha mask.
See also
disableAlphaMask()

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setGlobalAmbientColor()

virtual void ofBaseGLRenderer::setGlobalAmbientColor ( const ofColor c)
pure virtual

Set the global ambient light color.

Parameters
cThe color to set this renderer to use as ambient lighting.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setLightAmbientColor()

virtual void ofBaseGLRenderer::setLightAmbientColor ( int  lightIndex,
const ofFloatColor c 
)
pure virtual

Set the ambient light color for a light at a specific index.

Parameters
lightIndexThe index of the light to set the ambient color of.
cThe color to set the ambient light.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setLightAttenuation()

virtual void ofBaseGLRenderer::setLightAttenuation ( int  lightIndex,
float  constant,
float  linear,
float  quadratic 
)
pure virtual

Set the light attenuation for a light at a specific index.

Parameters
lightIndexThe index of the light whose spot concentration will be set.
constantSet the constant attenuation factor of the light at lightIndex.
linearSet the linear attenuation factor of the light at lightIndex.
quadraticSet 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()

virtual void ofBaseGLRenderer::setLightDiffuseColor ( int  lightIndex,
const ofFloatColor c 
)
pure virtual

Set the diffues light color for a light at a specific index.

Parameters
lightIndexThe index of the light to set the diffuse color of.
cThe color to set the diffuse light.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setLightPosition()

virtual void ofBaseGLRenderer::setLightPosition ( int  lightIndex,
const glm::vec4 &  position 
)
pure virtual

Set the position of a light at a specific index.

Parameters
lightIndexThe index of the light to set the position color of.
positionA 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()

virtual void ofBaseGLRenderer::setLightSpecularColor ( int  lightIndex,
const ofFloatColor c 
)
pure virtual

Set the specular light color for a light at a specific index.

Parameters
lightIndexThe index of the light to set the specular color of.
cThe color to set the specular light.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setLightSpotConcentration()

virtual void ofBaseGLRenderer::setLightSpotConcentration ( int  lightIndex,
float  exponent 
)
pure virtual

Set the spotlight concentration (exponent) for a light at a specific index.

Parameters
lightIndexThe index of the light whose spot concentration will be set.
exponentThe spot light exponent value.
See also
GL_SPOT_EXPONENT

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setLightSpotDirection()

virtual void ofBaseGLRenderer::setLightSpotDirection ( int  lightIndex,
const glm::vec4 &  direction 
)
pure virtual

Set the spot direction of a light at a specific index.

Parameters
lightIndexThe index of the light to set the spot direction of.
directionA 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()

virtual void ofBaseGLRenderer::setLightSpotlightCutOff ( int  lightIndex,
float  spotCutOff 
)
pure virtual

Set the spot light cutoff for a light at a specific index.

Parameters
lightIndexThe index of the light whose spot cutoff will be set.
spotCutOffThe spot light cut off value.
See also
GL_SPOT_CUTOFF

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ setSmoothLighting()

virtual void ofBaseGLRenderer::setSmoothLighting ( bool  b)
pure virtual

Enable/disable smooth light shading.

Parameters
bTrue to enable smooth light shading.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [1/8]

virtual void ofBaseGLRenderer::unbind ( const ofBaseMaterial material)
pure virtual

Unbind a material previously bound to this renderer with bind().

Parameters
materialThe material that is currently bound to this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [2/8]

virtual void ofBaseGLRenderer::unbind ( const ofBaseVideoDraws video)
pure virtual

Unbind a video previously bound to this renderer with bind().

Parameters
videoThe video that is currently bound to this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [3/8]

virtual void ofBaseRenderer::unbind ( const ofCamera camera)
virtual

Unbind the camera from this renderer.

Parameters
cameraThe camera to unbind from this renderer.

Implements ofBaseRenderer.

Reimplemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [4/8]

virtual void ofBaseGLRenderer::unbind ( const ofFbo fbo)
pure virtual

Unbind a frame buffer previously bound to this renderer with bind().

Parameters
fboThe frame buffer that is currently bound to this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [5/8]

virtual void ofBaseGLRenderer::unbind ( const ofShader shader)
pure virtual

Unbind a shader previously bound to this renderer with bind().

Parameters
shaderThe shader that is currently bound to this renderer.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [6/8]

virtual void ofBaseGLRenderer::unbind ( const ofShadow shadow)
pure virtual

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [7/8]

virtual void ofBaseGLRenderer::unbind ( const ofShadow shadow,
GLenum  aCubeFace 
)
pure virtual

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.

◆ unbind() [8/8]

virtual void ofBaseGLRenderer::unbind ( const ofTexture texture,
int  location 
)
pure virtual

Unbind a texture previously bound to this renderer with bind().

Parameters
textureThe texture that is currently bound to this renderer.
locationThe location texture was bound at.

Implemented in ofGLProgrammableRenderer, and ofGLRenderer.


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