reference

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

ofGraphicsConstants.h File Reference
#include "ofMathConstants.h"

Go to the source code of this file.

Macros

#define OF_MAX_STYLE_HISTORY   32
 
#define OF_MAX_VIEWPORT_HISTORY   32
 
#define OF_MAX_CIRCLE_PTS   1024
 

Typedefs

typedef ofColor_< float > ofFloatColor
 
using ofDefaultVertexType = ofDefaultVec3
 
using ofDefaultNormalType = ofDefaultVec3
 
using ofDefaultColorType = ofFloatColor
 
using ofDefaultTexCoordType = ofDefaultVec2
 

Enumerations

enum  ofPolyRenderMode { OF_MESH_POINTS , OF_MESH_WIREFRAME , OF_MESH_FILL }
 
enum  ofPrimitiveMode {
  OF_PRIMITIVE_TRIANGLES , OF_PRIMITIVE_TRIANGLE_STRIP , OF_PRIMITIVE_TRIANGLE_FAN , OF_PRIMITIVE_LINES ,
  OF_PRIMITIVE_LINE_STRIP , OF_PRIMITIVE_LINE_LOOP , OF_PRIMITIVE_POINTS , OF_PRIMITIVE_LINES_ADJACENCY ,
  OF_PRIMITIVE_LINE_STRIP_ADJACENCY , OF_PRIMITIVE_TRIANGLES_ADJACENCY , OF_PRIMITIVE_TRIANGLE_STRIP_ADJACENCY , OF_PRIMITIVE_PATCHES
}
 
enum  ofFillFlag { OF_OUTLINE = 0 , OF_FILLED = 1 }
 Used to represent the available fill modes. More...
 
enum  ofBlendMode {
  OF_BLENDMODE_DISABLED = 0 , OF_BLENDMODE_ALPHA = 1 , OF_BLENDMODE_ADD = 2 , OF_BLENDMODE_SUBTRACT = 3 ,
  OF_BLENDMODE_MULTIPLY = 4 , OF_BLENDMODE_SCREEN = 5
}
 Used to represent the available blending modes for drawing. More...
 
enum  ofGradientMode { OF_GRADIENT_LINEAR = 0 , OF_GRADIENT_CIRCULAR , OF_GRADIENT_BAR }
 Represents the gradient types available to ofBackgroundGradient(). More...
 
enum  ofPolyWindingMode {
  OF_POLY_WINDING_ODD , OF_POLY_WINDING_NONZERO , OF_POLY_WINDING_POSITIVE , OF_POLY_WINDING_NEGATIVE ,
  OF_POLY_WINDING_ABS_GEQ_TWO
}
 represents the available polygon winding modes. More...
 
enum  ofHandednessType { OF_LEFT_HANDED , OF_RIGHT_HANDED }
 represents the available matrix coordinate system handednesses. More...
 
enum  ofMatrixMode { OF_MATRIX_MODELVIEW =0 , OF_MATRIX_PROJECTION , OF_MATRIX_TEXTURE }
 represents the available matrix types used internally in ofMatrixStack. More...
 
enum  ofDrawBitmapMode {
  OF_BITMAPMODE_SIMPLE = 0 , OF_BITMAPMODE_SCREEN , OF_BITMAPMODE_VIEWPORT , OF_BITMAPMODE_MODEL ,
  OF_BITMAPMODE_MODEL_BILLBOARD
}
 Sets the bitmap drawing mode for text. More...
 
enum  ofRectMode { OF_RECTMODE_CORNER =0 , OF_RECTMODE_CENTER =1 }
 Used to represent the available rectangle drawing modes. More...
 
enum  ofImageType : short { OF_IMAGE_GRAYSCALE = 0x00 , OF_IMAGE_COLOR = 0x01 , OF_IMAGE_COLOR_ALPHA = 0x02 , OF_IMAGE_UNDEFINED = 0x03 }
 Used to represent the available channel types in ofImage. More...
 

Macro Definition Documentation

◆ OF_MAX_CIRCLE_PTS

#define OF_MAX_CIRCLE_PTS   1024
Deprecated:
Not currently used in the OF codebase.

◆ OF_MAX_STYLE_HISTORY

#define OF_MAX_STYLE_HISTORY   32

◆ OF_MAX_VIEWPORT_HISTORY

#define OF_MAX_VIEWPORT_HISTORY   32
Deprecated:
Not currently used in the OF codebase.

Typedef Documentation

◆ ofDefaultColorType

◆ ofDefaultNormalType

◆ ofDefaultTexCoordType

◆ ofDefaultVertexType

◆ ofFloatColor

typedef ofColor_<float> ofFloatColor

Enumeration Type Documentation

◆ ofBlendMode

Used to represent the available blending modes for drawing.

Enumerator
OF_BLENDMODE_DISABLED 

Blend mode is disabled.

OF_BLENDMODE_ALPHA 

Blend mode used for alpha blending.

OF_BLENDMODE_ADD 

Blend mode used for additive blending.

OF_BLENDMODE_SUBTRACT 

Blend mode used for subtractive blending.

OF_BLENDMODE_MULTIPLY 

Blend mode used for multiplicative blending.

OF_BLENDMODE_SCREEN 

Blend mode used for screen blending.

◆ ofDrawBitmapMode

Sets the bitmap drawing mode for text.

See also
ofSetDrawBitmapMode()
Enumerator
OF_BITMAPMODE_SIMPLE 
OF_BITMAPMODE_SCREEN 
OF_BITMAPMODE_VIEWPORT 
OF_BITMAPMODE_MODEL 
OF_BITMAPMODE_MODEL_BILLBOARD 

◆ ofFillFlag

enum ofFillFlag

Used to represent the available fill modes.

See also
ofBaseRenderer
Enumerator
OF_OUTLINE 

Draw shapes as outlines, unfilled.

OF_FILLED 

Draw shapes filled with the current draw color.

◆ ofGradientMode

Represents the gradient types available to ofBackgroundGradient().

Enumerator
OF_GRADIENT_LINEAR 

Represents a top-to-bottom linear gradient.

OF_GRADIENT_CIRCULAR 

Represents a circular gradient beginning at the screen's center.

OF_GRADIENT_BAR 

Represents a horizontal bar gradient.

 This is a horizontal gradient starting across the screen's center,
 and extending both to the top and bottom of the screen. 

◆ ofHandednessType

represents the available matrix coordinate system handednesses.

See also
ofMatrixStack
http://seanmiddleditch.com/matrices-handedness-pre-and-post-multiplication-row-vs-column-major-and-notations/
Enumerator
OF_LEFT_HANDED 
OF_RIGHT_HANDED 

◆ ofImageType

enum ofImageType : short

Used to represent the available channel types in ofImage.

These represent an abstraction of both CPU pixels (ofPixels) and GPU pixels (ofTexture). In most cases, developers should prefer ofPixelFormat over ofImageType for a more precise description of channel types.

See also
ofImage
Enumerator
OF_IMAGE_GRAYSCALE 

A single channel (or monochrome) image.

\sa OF_PIXELS_GRAY 
OF_IMAGE_COLOR 

A three channel (or RGB) image.

\sa OF_PIXELS_RGB 
OF_IMAGE_COLOR_ALPHA 

A four channel (or RGBA) image.

\sa OF_PIXELS_RGBA 
OF_IMAGE_UNDEFINED 

An unknown and unsupported image type.

\sa OF_PIXELS_UNKNOWN 

◆ ofMatrixMode

represents the available matrix types used internally in ofMatrixStack.

Enumerator
OF_MATRIX_MODELVIEW 
OF_MATRIX_PROJECTION 
OF_MATRIX_TEXTURE 

◆ ofPolyRenderMode

Enumerator
OF_MESH_POINTS 
OF_MESH_WIREFRAME 
OF_MESH_FILL 

◆ ofPolyWindingMode

represents the available polygon winding modes.

These are straight out of glu, but renamed and included here for convenience. We don't mean to wrap the whole glu library (or any other library for that matter), but these defines are useful to give people flexibility over the polygonizer.

See also
ofPath::tessellate()
ofTessellator::performTessellation()
http://glprogramming.com/red/images/Image128.gif
http://glprogramming.com/red/chapter11.html
Enumerator
OF_POLY_WINDING_ODD 

Fill odd winding numbers.

OF_POLY_WINDING_NONZERO 

Fill all non-zero winding numbers.

OF_POLY_WINDING_POSITIVE 

Fill all winding numbers greater than zero.

OF_POLY_WINDING_NEGATIVE 

Fill all winding numbers less than zero.

OF_POLY_WINDING_ABS_GEQ_TWO 

Fill all winding numbers greater than 1 or less than -1.

This stands for "Fill ABSolute values Greater than EQual to TWO". 

◆ ofPrimitiveMode

Enumerator
OF_PRIMITIVE_TRIANGLES 
OF_PRIMITIVE_TRIANGLE_STRIP 
OF_PRIMITIVE_TRIANGLE_FAN 
OF_PRIMITIVE_LINES 
OF_PRIMITIVE_LINE_STRIP 
OF_PRIMITIVE_LINE_LOOP 
OF_PRIMITIVE_POINTS 
OF_PRIMITIVE_LINES_ADJACENCY 
OF_PRIMITIVE_LINE_STRIP_ADJACENCY 
OF_PRIMITIVE_TRIANGLES_ADJACENCY 
OF_PRIMITIVE_TRIANGLE_STRIP_ADJACENCY 
OF_PRIMITIVE_PATCHES 

◆ ofRectMode

enum ofRectMode

Used to represent the available rectangle drawing modes.

See also
ofRectangle
ofTexture
ofImage
Enumerator
OF_RECTMODE_CORNER 

Represents the mode where rectangles draw from the top left.

OF_RECTMODE_CENTER 

Represents the mode where rectangles draw from the center.