ofDocsdocumentation types ofStyle

ofStyle

ofStyle class contains general information about the style of our ofGraphics elements such as color, line width and others.


ofStyle( )

ofStyle()

Create a default ofStyle.


~ofStyle( )

~ofStyle()

Destroy the ofStyle.


Variables

bool bFillTrue if the renderer should fill a rendered shape. If true, the renderer will fill the rendered shape. If false, the renderer will draw the outline of the rendered shape.

bFill variable contains information about how the graphics have to be drawed: Fill or noFill(empty)

ofColor bgColorThe background color used when rendering.
ofBlendMode blendingModeThe blending mode.
int circleResolution

circleResolution variable contains the resolution of a ofDrawCircle.

ofColor colorThe color used when rendering. This style depends on the state of the ofStyle::bFill.

color variable contain the color information for the style object.

int curveResolution
ofDrawBitmapMode drawBitmapModeThe render mode for bitmaps (e.g. ofDrawBitmapString). See also: ofDrawBitmapString(const T& textString, float x, float y)
float lineWidthThe width of rendered lines. Warning: This is not currently implemented in modern OF renderers.

lineWidth contains information about the width of the line for our ofDrawLine.

int polyModeThe current rendering mode for polygons. ofPolyWindingMode determines how ovelapping parts of the same polygon are rendered. See also: ofPolyWindingMode

polyMode variable contains information about the drawing behavior for ovelapping parts of the same polygon when we create a shape.

Possible modes are: OF_POLY_WINDING_ODD - OF_POLY_WINDING_NONZERO - OF_POLY_WINDING_POSITIVE - OF_POLY_WINDING_NEGATIVE - OF_POLY_WINDING_ABS_GEQ_TWO -

int rectModeDetermine how some shapes are anchored (e.g. ofDrawEllipse). The rectMode applies to several shapes, including ofDrawRectangle and ofDrawEllipse. If the current rectMode is OF_RECTMODE_CENTER, the rendered shape will be drawn with x, y in the center of the shape. If the current rectMode is OF_RECTMODE_CORNER, the rendered shape will be drawn with the x, y in the upper-left-hand corner of the shape.

rectMode contains information about the mode for drawing rectangles. If they are corner aligned, or drawn so that the x,y position is the center of the rectangle. Possible options are OF_RECTMODE_CENTER and OF_RECTMODE_CORNER

bool smoothingTrue if anti-aliasing is enabled.

smoothing variable contains the information about if smoothing effect is activated or not.

int sphereResolution