#include <pen.h>
Public Member Functions | |
| CL_Pen () | |
| Constructs a pen description. | |
| virtual | ~CL_Pen () |
| float | get_point_size () const |
| Returns the point size. | |
| float | get_max_point_size () const |
| Returns the maximum point size. | |
| float | get_min_point_size () const |
| Returns the minimum point size. | |
| float | get_point_fade_treshold_size () const |
| Returns the treshold size for alpha fading to kick in (Requires multisampling to be enabled.). | |
| void | get_point_distance_attenuation (float &a, float &b, float &c) const |
| Get the a, b and c function coefficients used in point distance attenuation calculations. | |
| bool | is_point_antialiased () const |
| Return true if antialiasing of points is enabled. | |
| float | get_line_width () const |
| unsigned short | get_line_stipple_pattern () const |
| Returns the line stipple pattern. | |
| int | get_line_stipple_repeat_count () const |
| Returns the line stipple repeat count. | |
| bool | is_line_stippled () const |
| Returns true if line stippling is enabled. | |
| bool | is_line_antialiased () const |
| Returns true if line antialiasing is enabled. | |
| bool | is_using_point_sprites () const |
| Returns true if points are being drawn as texture point sprites. | |
| bool | is_using_vertex_program_point_sizes () const |
| Enables if points sizes is set by the vertex shader. | |
| CL_PointSpriteOrigin | get_point_sprite_origin () const |
| Returns the origin of texture point sprites. | |
| void | set_point_size (float) |
| The default value is 1.0. | |
| void | set_max_point_size (float) |
| Point size is clamped to the min and max values. | |
| void | set_min_point_size (float) |
| Point size is clamped to the min and max values. | |
| void | set_point_fade_treshold_size (float) |
| Alpha fade point once minimum size treshold reached. Requires multisampling to be enabled. | |
| void | set_point_distance_attenuation (float a, float b, float c) |
| Set the a, b and c function coefficients used in point distance attenuation calculations. | |
| void | enable_point_antialiasing (bool enabled) |
| Setting to true enables point antialiasing. | |
| void | set_line_width (float) |
| Set the number of times each bit in the stipple pattern is used. | |
| void | set_line_stipple_pattern (unsigned short) |
| Set the line stipple pattern. | |
| void | set_line_stipple_repeat_count (int) |
| Set the number of times each bit in the stipple pattern is used. | |
| void | enable_line_stipple (bool enabled) |
| Setting to true enables line Stippling. | |
| void | enable_line_antialiasing (bool enabled) |
| Setting to true enables line antialiasing. | |
| void | enable_point_sprite (bool enable) |
| Enables if points are being drawn as texture point sprites. | |
| void | enable_vertex_program_point_size (bool enable) |
| Enables if points sizes is set by the vertex shader. | |
| void | set_point_sprite_origin (CL_PointSpriteOrigin origin) |
| Sets the origin of texture point sprites. | |
|
|
Constructs a pen description.
|
|
|
|
|
|
Setting to true enables line antialiasing. Initially antialiasing of lines is disabled. |
|
|
Setting to true enables line Stippling. Initially line stippling is disabled. |
|
|
Setting to true enables point antialiasing. Antialiasing of points is disabled by default |
|
|
Enables if points are being drawn as texture point sprites.
|
|
|
Enables if points sizes is set by the vertex shader.
|
|
|
Returns the line stipple pattern.
|
|
|
Returns the line stipple repeat count.
|
|
|
|
|
|
Returns the maximum point size.
|
|
|
Returns the minimum point size.
|
|
||||||||||||||||
|
Get the a, b and c function coefficients used in point distance attenuation calculations.
|
|
|
Returns the treshold size for alpha fading to kick in (Requires multisampling to be enabled.).
|
|
|
Returns the point size.
|
|
|
Returns the origin of texture point sprites.
|
|
|
Returns true if line antialiasing is enabled.
|
|
|
Returns true if line stippling is enabled.
|
|
|
Return true if antialiasing of points is enabled.
|
|
|
Returns true if points are being drawn as texture point sprites.
|
|
|
Enables if points sizes is set by the vertex shader.
|
|
|
Set the line stipple pattern. Line stippling masks certain fragments that are produced by rasterization, thus producing a non-continuous line when rendering. Each bit in the pattern is repeated as specified by the function set_line_stipple_repeat_count(int). The initial line stipple value is FFFF (continuos line). |
|
|
Set the number of times each bit in the stipple pattern is used. The initial value of the line stipple repeat count is 1. The value is clamped to the range 1-256 |
|
|
Set the number of times each bit in the stipple pattern is used. The initial value of the line width is 1.0. |
|
|
Point size is clamped to the min and max values.
|
|
|
Point size is clamped to the min and max values.
|
|
||||||||||||||||
|
Set the a, b and c function coefficients used in point distance attenuation calculations.
|
|
|
Alpha fade point once minimum size treshold reached. Requires multisampling to be enabled.
|
|
|
The default value is 1.0.
|
|
|
Sets the origin of texture point sprites.
|
1.4.6