Shapes

Functions

void oslDrawLine (int x0, int y0, int x1, int y1, OSL_COLOR color)
 
void oslDrawRect (int x0, int y0, int x1, int y1, OSL_COLOR color)
 
void oslDrawFillRect (int x0, int y0, int x1, int y1, OSL_COLOR color)
 
void oslDrawGradientRect (int x0, int y0, int x1, int y1, OSL_COLOR c1, OSL_COLOR c2, OSL_COLOR c3, OSL_COLOR c4)
 

Detailed Description

Formerly untextured geometry.

Function Documentation

void oslDrawLine ( int  x0,
int  y0,
int  x1,
int  y1,
OSL_COLOR  color 
)

Draws a line from (x0, y0) to (x1, y1).

void oslDrawRect ( int  x0,
int  y0,
int  x1,
int  y1,
OSL_COLOR  color 
)

Draws an empty rectangle from (x0, y0) to (x1, y1).

void oslDrawFillRect ( int  x0,
int  y0,
int  x1,
int  y1,
OSL_COLOR  color 
)

Draws a filled rectangle from (x0, y0) to (x1, y1).

void oslDrawGradientRect ( int  x0,
int  y0,
int  x1,
int  y1,
OSL_COLOR  c1,
OSL_COLOR  c2,
OSL_COLOR  c3,
OSL_COLOR  c4 
)

Draws a gradient rectangle from (x0, y0) to (x1, y1).

Parameters
x0,y0Top-left position of the rectangle.
x1,y1Bottom-right position of the rectangle.
c1Color of the top-left corner.
c2Color of the top-right corner.
c3Color of the bottom-left corner.
c4Color of the bottom-right corner.