#if defined(VG_API_LINUX)
#include <GL/gl.h>
#include <GL/glu.h>
+ #include <GL/glx.h>
#elif defined(VG_API_MACOSX)
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
void shFlattenPath(SHPath *p, SHint surfaceSpace)
{
SHint contourStart = -1;
- SHint surfSpace = surfaceSpace;
+// SHint surfSpace = surfaceSpace;
SHint *userData[2];
SHint processFlags =
SH_PROCESS_SIMPLIFY_LINES |
SHVector2 c, ux, uy;
SHVector2 cc, uux, uuy;
- SHMatrix3x3 *m;
+ SHMatrix3x3 *m = 0;
SHMatrix3x3 mi;
SHint invertible;
SHVector2 corners[4];
SHVector2 c, f;
SHVector2 cf;
- SHMatrix3x3 *m;
+ SHMatrix3x3 *m = 0;
SHMatrix3x3 mi;
SHint invertible;
SHVector2 corners[4];
int shDrawPatternMesh(SHPaint *p, SHVector2 *min, SHVector2 *max,
VGPaintMode mode, GLenum texUnit)
{
- SHMatrix3x3 *m;
+ SHMatrix3x3 *m = 0;
SHMatrix3x3 mi;
SHfloat migl[16];
SHint invertible;
SHResourceType rtype, VGint ptype,
SHint count, const void *values, SHint floats)
{
- SHfloat fvalue = 0.0f;
+// SHfloat fvalue = 0.0f;
SHint ivalue = 0;
- VGboolean bvalue = VG_FALSE;
+// VGboolean bvalue = VG_FALSE;
int i;
/* Check for negative count */
/* Pre-convert first value for non-vector params */
if (count == 1) {
- fvalue = shParamToFloat(values, floats, 0);
+// fvalue = shParamToFloat(values, floats, 0);
ivalue = shParamToInt(values, floats, 0);
- bvalue = (ivalue ? VG_TRUE : VG_FALSE);
+// bvalue = (ivalue ? VG_TRUE : VG_FALSE);
}
switch (rtype)
static void shDrawPaintMesh(VGContext *c, SHVector2 *min, SHVector2 *max,
VGPaintMode mode, GLenum texUnit)
{
- SHPaint *p;
+ SHPaint *p = 0;
SHVector2 pmin, pmax;
SHfloat K = 1.0f;
{
SHfloat nX, nY;
SHVector2 X, Y;
- SHMatrix3x3 mi, mchange;
+ SHMatrix3x3 mi;//, mchange;
VGboolean valid = VG_TRUE;
if (p->cacheDataValid == VG_FALSE) {
else
{
/* TODO: Compare change matrix for any scale or shear */
- MULMATMAT( c->pathTransform, mi, mchange );
+// MULMATMAT( c->pathTransform, mi, mchange );
SET2( X, mi.m[0][0], mi.m[1][0] );
SET2( Y, mi.m[0][1], mi.m[1][1] );
nX = NORM2( X ); nY = NORM2( Y );