This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofGLBaseTypes.h
Go to the documentation of this file.
114 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;
166 virtual void drawElements(const ofVbo & vbo, GLuint drawMode, int amt, int offsetelements) const=0;
194 virtual void drawInstanced(const ofVbo & vbo, GLuint drawMode, int first, int total, int primCount) const=0;
221 virtual void drawElementsInstanced(const ofVbo & vbo, GLuint drawMode, int amt, int primCount) const=0;
249 virtual void drawInstanced(const ofVboMesh & mesh, ofPolyRenderMode renderType, int primCount) const=0;
363 virtual void setLightAttenuation(int lightIndex, float constant, float linear, float quadratic )=0;
virtual ~ofAbstractImage()
Destroy the ofAbstractImage.
Definition ofGLBaseTypes.h:70
Definition ofGraphicsBaseTypes.h:139
Definition ofGLBaseTypes.h:95
virtual void enablePointSprites()=0
Enable point sprites when using this renderer.
virtual void disableAlphaMask()=0
Disable this renderer's current alpha mask texture.
virtual void draw(const ofVboMesh &mesh, ofPolyRenderMode renderType) const =0
Draw a vertex buffer mesh using a specific poly render mode.
virtual void disablePointSprites()=0
Disable point sprites when using this renderer.
virtual void bind(const ofBaseVideoDraws &video)=0
Bind a video's texture to this renderer.
virtual int getGLVersionMinor()=0
Get the minor OpenGL version number this renderer is using.
virtual void bind(const ofShadow &shadow, GLenum aCubeFace)=0
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 setGlobalAmbientColor(const ofColor &c)=0
Set the global ambient light color.
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 unbind(const ofBaseVideoDraws &video)=0
Unbind a video previously bound to this renderer with bind().
virtual void enableSeparateSpecularLight()=0
Enable seperate specular lighting parameters.
virtual int getGLVersionMajor()=0
Get the major OpenGL version number this renderer is using.
virtual void bind(const ofBaseMaterial &material)=0
Bind a material to be used with this renderer.
virtual void setLightDiffuseColor(int lightIndex, const ofFloatColor &c)=0
Set the diffues light color for a light at a specific index.
virtual void unbind(const ofShadow &shadow, GLenum aCubeFace)=0
virtual void setAlphaMaskTex(const ofTexture &tex)=0
Enable alpha masking using this texture as the mask source.
virtual void end(const ofFbo &fbo)=0
Stop using the specified frame buffer as this renderer's render surface.
virtual void disableLighting()=0
Disable lighting with this renderer.
virtual void setLightSpotDirection(int lightIndex, const glm::vec4 &direction)=0
Set the spot direction of a light at a specific index.
virtual void disableSeparateSpecularLight()=0
Disable seperate specular lighting parameters.
virtual void saveFullViewport(ofPixels &pixels)=0
Fill an ofPixels object with the contents of the current screen.
virtual void enableLight(int lightIndex)=0
Enable a light at a specific index.
virtual void unbind(const ofShadow &shadow)=0
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 bindForBlitting(const ofFbo &fboSrc, ofFbo &fboDst, int attachmentPoint=0)=0
Bind source and destination frame buffers for blitting.
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 begin(const ofFbo &fbo, ofFboMode mode)=0
Begin using a frame buffer as this renderer's render surface.
virtual void disableLight(int lightIndex)=0
Disable a light at a specific index.
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 disableTextureTarget(int textureTarget, int textureLocation)=0
Unbind the texture target at the texture location.
virtual void setLightSpecularColor(int lightIndex, const ofFloatColor &c)=0
Set the specular light color for a light at a specific index.
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 unbind(const ofFbo &fbo)=0
Unbind a frame buffer previously bound to this renderer with bind().
virtual void unbind(const ofShader &shader)=0
Unbind a shader previously bound to this renderer with bind().
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 setLightSpotConcentration(int lightIndex, float exponent)=0
Set the spotlight concentration (exponent) 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 setLightSpotlightCutOff(int lightIndex, float spotCutOff)=0
Set the spot light cutoff for a light at a specific index.
virtual bool getLightingEnabled()=0
Returns true if lighting is enabled with this renderer.
virtual void unbind(const ofTexture &texture, int location)=0
Unbind a texture previously bound to this renderer with bind().
virtual void enableTextureTarget(const ofTexture &tex, int textureLocation)=0
Bind the texture at the texture location.
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 ofShader &shader)=0
Bind a shader to be used 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 unbind(const ofBaseMaterial &material)=0
Unbind a material previously bound to this renderer with bind().
virtual void setSmoothLighting(bool b)=0
Enable/disable smooth light shading.
virtual void setLightAmbientColor(int lightIndex, const ofFloatColor &c)=0
Set the ambient light color for a light at a specific index.
virtual void bind(const ofShadow &shadow)=0
A base class represeting an object that has pixels.
Definition ofGraphicsBaseTypes.h:254
An abstract class representing an object that can have an ofTexture.
Definition ofGLBaseTypes.h:11
virtual void setUseTexture(bool bUseTex)=0
Enable or disable internal ofTexture use.
virtual ~ofBaseHasTexture()
Destroy the ofBaseHasTexture.
Definition ofGLBaseTypes.h:14
virtual const ofTexture & getTexture() const =0
virtual ofTexture & getTexture()=0
virtual bool isUsingTexture() const =0
An abstract class representing an object that ofTexture planes.
Definition ofGLBaseTypes.h:32
virtual const std::vector< ofTexture > & getTexturePlanes() const =0
virtual std::vector< ofTexture > & getTexturePlanes()=0
virtual ~ofBaseHasTexturePlanes()
Destroy the ofBaseHasTexturePlanes.
Definition ofGLBaseTypes.h:35
virtual ~ofBaseImage_()
Destroy the ofBaseImage_.
Definition ofGLBaseTypes.h:79
material parameter properties that can be applied to vertices in the OpenGL lighting model used in de...
Definition ofMaterialBaseTypes.h:41
virtual void draw(const ofPolyline &poly) const =0
Draw a polyline 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.
Definition ofFbo.h:46
Definition ofShader.h:35
Definition ofShadow.h:24
Definition ofVbo.h:21
Definition ofVboMesh.h:6
ofBaseImage_< unsigned short > ofBaseShortImage
A typedef for an unsigned short ofBaseImage_.
Definition ofGLBaseTypes.h:90
ofBaseImage_< float > ofBaseFloatImage
A typedef for an float ofBaseImage_.
Definition ofGLBaseTypes.h:87
ofBaseImage_< unsigned char > ofBaseImage
A typedef for an unsigned char ofBaseImage_.
Definition ofGLBaseTypes.h:84
#define c
#define b