Candy
|
This texture provides drawing functions to simplify drawing. More...
Classes | |
class | SFImage |
Public Member Functions | |
PaintTexture (H3D::Inst< H3D::H3DDisplayListObject::DisplayList > _displayList=0, H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::SFBool > _repeatS=0, H3D::Inst< H3D::SFBool > _repeatT=0, H3D::Inst< H3D::SFBool > _scaleToP2=0, H3D::Inst< SFImage > _image=0, H3D::Inst< SFTextureProperties > _textureProperties=0) | |
void | beginEditing () |
void | endEditing () |
void | drawPoint (int x0, int y0, H3DUtil::RGBA color, int width, int height) |
Draw a point at the specified position with the specified color. More... | |
void | drawPoint (int x0, int y0, H3DUtil::RGBA color) |
Identical to CANDY::PaintTexture::drawPoint(int x0, int y0, H3DUtil::RGBA color, int width, int height) except that it is slower, since it has to check the image height and width. More... | |
void | drawLine (float x0, float y0, float x1, float y1, H3DUtil::RGBA color, int width, int height) |
Draw a line between the specified positions with the specified color. More... | |
void | drawLine (float x0, float y0, float x1, float y1, H3DUtil::RGBA color) |
Identical to CANDY::PaintTexture::drawLine(float x0, float y0, float x1, float y1, H3DUtil::RGBA color, int width, int height ) except that it is slower, since it has to check the image height and width. More... | |
void | drawCircle (float x, float y, float r, H3DUtil::RGBA color, int width, int height) |
Draw a circle at the specified position with the specified radius and color. More... | |
void | drawCircle (float x, float y, float r, H3DUtil::RGBA color) |
Identical to CANDY::PaintTexture::drawCircle(float x, float y, float r, H3DUtil::RGBA color, int width, int height ) except that it is slower, since it has to check the image height and width. More... | |
int | getWidth () |
int | getHeight () |
void | setWidth (int width) |
void | setHeight (int height) |
void | setResolution (int width, int height) |
![]() | |
virtual void | enableTexturing ()=0 |
virtual void | disableTexturing ()=0 |
Static Public Attributes | |
static H3D::H3DNodeDatabase | database |
This texture provides drawing functions to simplify drawing.
void Candy::PaintTexture::drawCircle | ( | float | x, |
float | y, | ||
float | r, | ||
H3DUtil::RGBA | color, | ||
int | width, | ||
int | height | ||
) |
Draw a circle at the specified position with the specified radius and color.
Call beginEditing before and endEditing after. The width and height must specify the correct image height and width as returned by getHeight() and getWidth(), respectively.
|
inline |
Identical to CANDY::PaintTexture::drawCircle(float x, float y, float r, H3DUtil::RGBA color, int width, int height ) except that it is slower, since it has to check the image height and width.
void Candy::PaintTexture::drawLine | ( | float | x0, |
float | y0, | ||
float | x1, | ||
float | y1, | ||
H3DUtil::RGBA | color, | ||
int | width, | ||
int | height | ||
) |
Draw a line between the specified positions with the specified color.
Call beginEditing before and endEditing after. The width and height must specify the correct image height and width as returned by getHeight() and getWidth(), respectively.
|
inline |
Identical to CANDY::PaintTexture::drawLine(float x0, float y0, float x1, float y1, H3DUtil::RGBA color, int width, int height ) except that it is slower, since it has to check the image height and width.
void Candy::PaintTexture::drawPoint | ( | int | x0, |
int | y0, | ||
H3DUtil::RGBA | color, | ||
int | width, | ||
int | height | ||
) |
Draw a point at the specified position with the specified color.
Call beginEditing before and endEditing after. The width and height must specify the correct image height and width as returned by getHeight() and getWidth(), respectively.
|
inline |
Identical to CANDY::PaintTexture::drawPoint(int x0, int y0, H3DUtil::RGBA color, int width, int height) except that it is slower, since it has to check the image height and width.