ofDocsdocumentation graphics ofCairoRenderer

ofCairoRenderer


background( ... )

void background(const ofColor &c)

background( ... )

void background(float brightness)

background( ... )

void background(int hexColor, float _a=255.0f)

background( ... )

void background(int r, int g, int b, int a=255)

bind( ... )

void bind(const ofCamera &camera, const ofRectangle &viewport)

clear( )

void clear()

clear( ... )

void clear(float brightness, float a)

clear( ... )

void clear(float r, float g, float b, float a)

clearAlpha( )

void clearAlpha()

close( )

void close()

disableAntiAliasing( )

void disableAntiAliasing()

draw( ... )

void draw(const ofFloatImage &image, float x, float y, float z, float w, float h, float sx, float sy, float sw, float sh)

draw( ... )

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

draw( ... )

void draw(const ofImage &img, float x, float y, float z, float w, float h, float sx, float sy, float sw, float sh)

draw( ... )

void draw(const ofPixels &img, float x, float y, float z, float w, float h, float sx, float sy, float sw, float sh)

draw( ... )

void draw(const of3dPrimitive &model, ofPolyRenderMode renderType)

draw( ... )

void draw(const ofNode &node)

draw( ... )

void draw(const ofPath::Command &path)

draw( ... )

void draw(const ofPolyline &poly)

draw( ... )

void draw(const ofPath &shape)

draw( ... )

void draw(const int &vertexData, ofPrimitiveMode drawMode)

draw( ... )

void draw(const ofMesh &vertexData, ofPolyRenderMode mode, bool useColors, bool useTextures, bool useNormals)

draw( ... )

void draw(const ofBaseVideoDraws &video, float x, float y, float w, float h)

drawCircle( ... )

void drawCircle(float x, float y, float z, float radius)

drawEllipse( ... )

void drawEllipse(float x, float y, float z, float width, float height)

drawLine( ... )

void drawLine(float x1, float y1, float z1, float x2, float y2, float z2)

drawRectangle( ... )

void drawRectangle(float x, float y, float z, float w, float h)

drawString( ... )

void drawString(const ofTrueTypeFont &font, string text, float x, float y)

drawString( ... )

void drawString(string text, float x, float y, float z)

drawTriangle( ... )

void drawTriangle(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3)

enableAntiAliasing( )

void enableAntiAliasing()

finishRender( )

void finishRender()

flush( )

void flush()

get3dGraphics( )

const of3dGraphics & get3dGraphics()

get3dGraphics( )

of3dGraphics & get3dGraphics()

getBackgroundAuto( )

bool getBackgroundAuto()

getBackgroundColor( )

ofColor getBackgroundColor()

getCairoContext( )

cairo_t * getCairoContext()

getCairoSurface( )

cairo_surface_t * getCairoSurface()

getContentBuffer( )

ofBuffer & getContentBuffer()

getCoordHandedness( )

ofHandednessType getCoordHandedness()

getCurrentMatrix( ... )

glm::mat4 getCurrentMatrix(ofMatrixMode matrixMode_)

getCurrentNormalMatrix( )

glm::mat4 getCurrentNormalMatrix()

getCurrentOrientationMatrix( )

glm::mat4 getCurrentOrientationMatrix()

getCurrentViewMatrix( )

glm::mat4 getCurrentViewMatrix()

getCurrentViewport( )

ofRectangle getCurrentViewport()

getFillMode( )

ofFillFlag getFillMode()

getImageSurfacePixels( )

ofPixels & getImageSurfacePixels()

getNativeViewport( )

ofRectangle getNativeViewport()

getPath( )

ofPath & getPath()

getRectMode( )

ofRectMode getRectMode()

getStyle( )

ofStyle getStyle()

getType( )

const string & getType()

getViewportHeight( )

int getViewportHeight()

getViewportWidth( )

int getViewportWidth()

isVFlipped( )

bool isVFlipped()

loadIdentityMatrix( )

void loadIdentityMatrix()

loadMatrix( ... )

void loadMatrix(const glm::mat4 &m)

loadMatrix( ... )

void loadMatrix(const float *m)

loadViewMatrix( ... )

void loadViewMatrix(const glm::mat4 &m)

matrixMode( ... )

void matrixMode(ofMatrixMode mode)

multMatrix( ... )

void multMatrix(const glm::mat4 &m)

multMatrix( ... )

void multMatrix(const float *m)

multViewMatrix( ... )

void multViewMatrix(const glm::mat4 &m)

ofCairoRenderer( )

ofCairoRenderer()

popMatrix( )

void popMatrix()

popStyle( )

void popStyle()

popView( )

void popView()

pushMatrix( )

void pushMatrix()

pushStyle( )

void pushStyle()

pushView( )

void pushView()

rotateRad( ... )

void rotateRad(float radians)

rotateRad( ... )

void rotateRad(float radians, float vecX, float vecY, float vecZ)

rotateXRad( ... )

void rotateXRad(float radians)

rotateYRad( ... )

void rotateYRad(float radians)

rotateZRad( ... )

void rotateZRad(float radians)

scale( ... )

void scale(float xAmnt, float yAmnt, float zAmnt)

setBackgroundAuto( ... )

void setBackgroundAuto(bool bManual)

setBackgroundColor( ... )

void setBackgroundColor(const ofColor &c)

setBitmapTextMode( ... )

void setBitmapTextMode(ofDrawBitmapMode mode)

setBlendMode( ... )

void setBlendMode(ofBlendMode blendMode)

setCircleResolution( ... )

void setCircleResolution(int )

setColor( ... )

void setColor(const ofColor &color)

setColor( ... )

void setColor(const ofColor &color, int _a)

setColor( ... )

void setColor(int gray)

setColor( ... )

void setColor(int r, int g, int b)

setColor( ... )

void setColor(int r, int g, int b, int a)

setCoordHandedness( ... )

void setCoordHandedness(ofHandednessType handedness)

setCurveResolution( ... )

void setCurveResolution(int resolution)

setDepthTest( ... )

void setDepthTest(bool depthTest)

setFillMode( ... )

void setFillMode(ofFillFlag fill)

setHexColor( ... )

void setHexColor(int hexColor)

setLineSmoothing( ... )

void setLineSmoothing(bool smooth)

setLineWidth( ... )

void setLineWidth(float lineWidth)

setOrientation( ... )

void setOrientation(ofOrientation orientation, bool vFlip)

setPolyMode( ... )

void setPolyMode(ofPolyWindingMode mode)

setRectMode( ... )

void setRectMode(ofRectMode mode)

setStyle( ... )

void setStyle(const ofStyle &style)

setup( ... )

void setup(string filename, ofCairoRenderer::Type type=FROM_FILE_EXTENSION, bool multiPage=true, bool b3D=false, ofRectangle outputsize)

setupGraphicDefaults( )

void setupGraphicDefaults()

setupMemoryOnly( ... )

void setupMemoryOnly(ofCairoRenderer::Type _type, bool multiPage=true, bool b3D=false, ofRectangle viewport)

setupScreen( )

void setupScreen()

setupScreenOrtho( ... )

void setupScreenOrtho(float width, float height, float nearDist, float farDist)

setupScreenPerspective( ... )

void setupScreenPerspective(float width, float height, float fov, float nearDist, float farDist)

startRender( )

void startRender()

stream_function( ... )

_cairo_status stream_function(void *closure, const unsigned char *data, unsigned int length)

transform( ... )

glm::vec3 transform(glm::vec3 vec)

translate( ... )

void translate(const glm::vec3 &p)

translate( ... )

void translate(float x, float y, float z)

unbind( ... )

void unbind(const ofCamera &camera)

viewport( ... )

void viewport(ofRectangle viewport)

viewport( ... )

void viewport(float x, float y, float width, float height, bool invertY=true)

~ofCairoRenderer( )

~ofCairoRenderer()

Variables

conststring TYPE
bool b3D
bool bBackgroundAuto
cairo_t* cr
ofMatrixMode currentMatrixMode
ofStyle currentStyle
ofPoint curvePoints
string filename
of3dGraphics graphics3d
ofPixels imageBuffer
ofMatrix4x4 modelView
ofMatrix4x4 modelViewStack
bool multiPage
ofRectangle originalViewport
int page
ofPath path
ofMatrix4x4 projection
ofMatrix4x4 projectionStack
ofPoint spherePoints
ofPoint sphereVerts
ofBuffer streamBuffer
cairo_surface_t* surface
Type type
ofRectangle viewportRect
ofRectangle viewportStack