reference

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

Contains general information about the style of ofGraphics elements such as color, line width and others. More...

#include <ofGraphicsBaseTypes.h>

Public Member Functions

 ofStyle ()
 Create a default ofStyle.
 
virtual ~ofStyle ()
 Destroy the ofStyle.
 

Public Attributes

ofColor color
 The color used when rendering.
 
ofColor bgColor
 The background color used when rendering.
 
ofPolyWindingMode polyMode
 The current rendering mode for polygons.
 
ofRectMode rectMode
 Determine how some shapes are anchored (e.g. ofDrawEllipse).
 
bool bFill
 True if the renderer should fill a rendered shape.
 
ofDrawBitmapMode drawBitmapMode
 The render mode for bitmaps (e.g. ofDrawBitmapString).
 
ofBlendMode blendingMode
 The blending mode.
 
bool smoothing
 True if anti-aliasing is enabled.
 
int circleResolution
 
int sphereResolution
 
int curveResolution
 
float lineWidth
 The width of rendered lines.
 

Detailed Description

Contains general information about the style of ofGraphics elements such as color, line width and others.

Constructor & Destructor Documentation

◆ ofStyle()

ofStyle::ofStyle ( )
inline

Create a default ofStyle.

◆ ~ofStyle()

virtual ofStyle::~ofStyle ( )
inlinevirtual

Destroy the ofStyle.

Member Data Documentation

◆ bFill

bool ofStyle::bFill

True 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.

◆ bgColor

ofColor ofStyle::bgColor

The background color used when rendering.

◆ blendingMode

ofBlendMode ofStyle::blendingMode

The blending mode.

◆ circleResolution

int ofStyle::circleResolution

◆ color

ofColor ofStyle::color

The color used when rendering.

This style depends on the state of the ofStyle::bFill.

◆ curveResolution

int ofStyle::curveResolution

◆ drawBitmapMode

ofDrawBitmapMode ofStyle::drawBitmapMode

The render mode for bitmaps (e.g. ofDrawBitmapString).

See also
ofDrawBitmapString(const T& textString, float x, float y)

◆ lineWidth

float ofStyle::lineWidth

The width of rendered lines.

Warning
This is not currently implemented in modern OF renderers.

◆ polyMode

ofPolyWindingMode ofStyle::polyMode

The current rendering mode for polygons.

ofPolyWindingMode determines how ovelapping parts of the same polygon are rendered.

See also
ofPolyWindingMode

◆ rectMode

ofRectMode ofStyle::rectMode

Determine 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.

◆ smoothing

bool ofStyle::smoothing

True if anti-aliasing is enabled.

◆ sphereResolution

int ofStyle::sphereResolution

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