PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Public Attributes | Protected Attributes | List of all members
pic::StrokeGL Class Reference

The StrokeGL class. More...

#include <stroke.hpp>

Public Member Functions

 StrokeGL (int width, int height, int brushSize, float *color)
 StrokeGL. More...
 
 ~StrokeGL ()
 
void initShaders ()
 initShaders More...
 
void Resample ()
 Resample. More...
 
void Reset ()
 Reset. More...
 
void Insert2DPoint (int x, int y)
 Insert2DPoint. More...
 
void RenderGL ()
 RenderGL. More...
 
void RenderAnnotationGL ()
 RenderAnnotationGL. More...
 
void RenderBrushGL (int x, int y)
 RenderBrushGL. More...
 
unsigned int Size ()
 Size. More...
 
void bindCol (float val)
 bindCol More...
 
void unBindCol ()
 unBindCol More...
 
void Straightner ()
 Straightner. More...
 

Public Attributes

float annotation
 

Protected Attributes

int width
 
int height
 
int brushSize
 
ImageGLshape
 
float size
 
float rSize
 
float color [4]
 
float tmpColor [3]
 
QuadGLquad
 
std::vector< float > positions
 
TechniqueGL annotationProgram
 
TechniqueGL brushProgram
 

Detailed Description

The StrokeGL class.

Constructor & Destructor Documentation

◆ StrokeGL()

PIC_INLINE pic::StrokeGL::StrokeGL ( int  width,
int  height,
int  brushSize = 128,
float *  color = NULL 
)

StrokeGL.

Parameters
width
height
brushSize
color

◆ ~StrokeGL()

PIC_INLINE pic::StrokeGL::~StrokeGL ( )

Member Function Documentation

◆ bindCol()

void pic::StrokeGL::bindCol ( float  val)
inline

bindCol

Parameters
val

◆ initShaders()

PIC_INLINE void pic::StrokeGL::initShaders ( )

initShaders

◆ Insert2DPoint()

PIC_INLINE void pic::StrokeGL::Insert2DPoint ( int  x,
int  y 
)

Insert2DPoint.

Parameters
x
y

◆ RenderAnnotationGL()

PIC_INLINE void pic::StrokeGL::RenderAnnotationGL ( )

RenderAnnotationGL.

◆ RenderBrushGL()

PIC_INLINE void pic::StrokeGL::RenderBrushGL ( int  x,
int  y 
)

RenderBrushGL.

Parameters
x
y

◆ RenderGL()

PIC_INLINE void pic::StrokeGL::RenderGL ( )

RenderGL.

◆ Resample()

PIC_INLINE void pic::StrokeGL::Resample ( )

Resample.

◆ Reset()

PIC_INLINE void pic::StrokeGL::Reset ( )

Reset.

◆ Size()

unsigned int pic::StrokeGL::Size ( )
inline

Size.

Returns

◆ Straightner()

void pic::StrokeGL::Straightner ( )
inline

Straightner.

◆ unBindCol()

void pic::StrokeGL::unBindCol ( )
inline

unBindCol

Member Data Documentation

◆ annotation

float pic::StrokeGL::annotation

◆ annotationProgram

TechniqueGL pic::StrokeGL::annotationProgram
protected

◆ brushProgram

TechniqueGL pic::StrokeGL::brushProgram
protected

◆ brushSize

int pic::StrokeGL::brushSize
protected

◆ color

float pic::StrokeGL::color[4]
protected

◆ height

int pic::StrokeGL::height
protected

◆ positions

std::vector<float> pic::StrokeGL::positions
protected

◆ quad

QuadGL* pic::StrokeGL::quad
protected

◆ rSize

float pic::StrokeGL::rSize
protected

◆ shape

ImageGL* pic::StrokeGL::shape
protected

◆ size

float pic::StrokeGL::size
protected

◆ tmpColor

float pic::StrokeGL::tmpColor[3]
protected

◆ width

int pic::StrokeGL::width
protected

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