43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
|
|
TOOLS_GL2PSDLL_API tools_GLint tools_gl2psSetBackgroundColor(float a_r,float a_g,float a_b)
|
|
{
|
|
if(!tools_gl2ps_context) return TOOLS_GL2PS_UNINITIALIZED;
|
|
|
|
tools_gl2ps_context->bgcolor[0] = a_r;
|
|
tools_gl2ps_context->bgcolor[1] = a_g;
|
|
tools_gl2ps_context->bgcolor[2] = a_b;
|
|
tools_gl2ps_context->bgcolor[3] = 1.0F;
|
|
|
|
return TOOLS_GL2PS_SUCCESS;
|
|
}
|
|
|
|
#undef TOOLS_GL2PS_EPSILON
|
|
#undef TOOLS_GL2PS_ZSCALE
|
|
#undef TOOLS_GL2PS_ZOFFSET
|
|
#undef TOOLS_GL2PS_ZOFFSET_LARGE
|
|
#undef TOOLS_GL2PS_ZERO
|
|
#undef TOOLS_GL2PS_COINCIDENT
|
|
#undef TOOLS_GL2PS_IN_FRONT_OF
|
|
#undef TOOLS_GL2PS_IN_BACK_OF
|
|
#undef TOOLS_GL2PS_SPANNING
|
|
#undef TOOLS_GL2PS_POINT_COINCIDENT
|
|
#undef TOOLS_GL2PS_POINT_INFRONT
|
|
#undef TOOLS_GL2PS_POINT_BACK
|
|
#undef TOOLS_GL2PS_BEGIN_OFFSET_TOKEN
|
|
#undef TOOLS_GL2PS_END_OFFSET_TOKEN
|
|
#undef TOOLS_GL2PS_BEGIN_BOUNDARY_TOKEN
|
|
#undef TOOLS_GL2PS_END_BOUNDARY_TOKEN
|
|
#undef TOOLS_GL2PS_BEGIN_STIPPLE_TOKEN
|
|
#undef TOOLS_GL2PS_END_STIPPLE_TOKEN
|
|
#undef TOOLS_GL2PS_POINT_SIZE_TOKEN
|
|
#undef TOOLS_GL2PS_LINE_CAP_TOKEN
|
|
#undef TOOLS_GL2PS_LINE_JOIN_TOKEN
|
|
#undef TOOLS_GL2PS_LINE_WIDTH_TOKEN
|
|
#undef TOOLS_GL2PS_BEGIN_BLEND_TOKEN
|
|
#undef TOOLS_GL2PS_END_BLEND_TOKEN
|
|
#undef TOOLS_GL2PS_SRC_BLEND_TOKEN
|
|
#undef TOOLS_GL2PS_DST_BLEND_TOKEN
|
|
#undef TOOLS_GL2PS_IMAGEMAP_TOKEN
|
|
#undef TOOLS_GL2PS_DRAW_PIXELS_TOKEN
|
|
#undef TOOLS_GL2PS_TEXT_TOKEN
|