/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include <stdio.h>
#include "cr_mem.h"
#include "state.h"
#include "state/cr_statetypes.h"
#include "state_internals.h"
{
p->mapStencil = GL_FALSE;
p->indexShift = 0;
p->indexOffset = 0;
p->depthScale = 1.0f;
p->bias = zero_color;
p->depthBias = 0.0f;
p->xZoom = 1.0f;
p->yZoom = 1.0f;
p->mapStoS[0] = 0;
p->mapItoI[0] = 0;
p->mapItoR[0] = 0.0;
p->mapItoG[0] = 0.0;
p->mapItoB[0] = 0.0;
p->mapItoA[0] = 0.0;
p->mapRtoR[0] = 0.0;
p->mapGtoG[0] = 0.0;
p->mapBtoB[0] = 0.0;
p->mapAtoA[0] = 0.0;
p->mapItoIsize = 1;
p->mapStoSsize = 1;
p->mapItoRsize = 1;
p->mapItoGsize = 1;
p->mapItoBsize = 1;
p->mapItoAsize = 1;
p->mapRtoRsize = 1;
p->mapGtoGsize = 1;
p->mapBtoBsize = 1;
p->mapAtoAsize = 1;
}
{
}
{
CRContext *g = GetCurrentContext();
CRPixelState *p = &(g->pixel);
if (g->current.inBeginEnd)
{
return;
}
FLUSH();
switch( pname )
{
case GL_MAP_COLOR:
break;
case GL_MAP_STENCIL:
break;
case GL_INDEX_SHIFT:
break;
case GL_INDEX_OFFSET:
break;
case GL_RED_SCALE:
break;
case GL_GREEN_SCALE:
break;
case GL_BLUE_SCALE:
break;
case GL_ALPHA_SCALE:
break;
case GL_DEPTH_SCALE:
p->depthScale = param;
break;
case GL_RED_BIAS:
break;
case GL_GREEN_BIAS:
break;
case GL_BLUE_BIAS:
break;
case GL_ALPHA_BIAS:
break;
case GL_DEPTH_BIAS:
break;
default:
return;
}
}
{
CRContext *g = GetCurrentContext();
CRPixelState *p = &(g->pixel);
if (g->current.inBeginEnd)
{
return;
}
FLUSH();
}
{
CRContext *g = GetCurrentContext();
CRCurrentState *c = &(g->current);
(void) xorig;
(void) yorig;
(void) bitmap;
return;
if (g->current.inBeginEnd)
{
return;
}
{
return;
}
if (!c->rasterValid)
{
return;
}
}
#define UNUSED(x) ((void)(x))
{
CRContext *g = GetCurrentContext();
CRPixelState *p = &(g->pixel);
GLint i;
if (g->current.inBeginEnd) {
return;
}
FLUSH();
return;
}
/* XXX check that mapsize is a power of two */
}
switch (map) {
case GL_PIXEL_MAP_S_TO_S:
p->mapStoSsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_I_TO_I:
p->mapItoIsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_I_TO_R:
p->mapItoRsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_I_TO_G:
p->mapItoGsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_I_TO_B:
p->mapItoBsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_I_TO_A:
p->mapItoAsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_R_TO_R:
p->mapRtoRsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_G_TO_G:
p->mapGtoGsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_B_TO_B:
p->mapBtoBsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
case GL_PIXEL_MAP_A_TO_A:
p->mapAtoAsize = mapsize;
if (!unpackbuffer)
for (i=0;i<mapsize;i++) {
}
break;
default:
return;
}
}
{
GLint i;
{
for (i=0;i<mapsize;i++) {
}
}
else {
for (i=0;i<mapsize;i++) {
}
}
}
else
{
}
}
{
GLint i;
{
for (i=0;i<mapsize;i++) {
}
}
else {
for (i=0;i<mapsize;i++) {
}
}
}
else
{
}
}
{
CRContext *g = GetCurrentContext();
CRPixelState *p = &(g->pixel);
GLint i;
if (g->current.inBeginEnd) {
return;
}
switch (map) {
case GL_PIXEL_MAP_S_TO_S:
for (i = 0; i < p->mapStoSsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_I:
for (i = 0; i < p->mapItoIsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_R:
break;
case GL_PIXEL_MAP_I_TO_G:
break;
case GL_PIXEL_MAP_I_TO_B:
break;
case GL_PIXEL_MAP_I_TO_A:
break;
case GL_PIXEL_MAP_R_TO_R:
break;
case GL_PIXEL_MAP_G_TO_G:
break;
case GL_PIXEL_MAP_B_TO_B:
break;
case GL_PIXEL_MAP_A_TO_A:
break;
default:
return;
}
}
{
CRContext *g = GetCurrentContext();
CRPixelState *p = &(g->pixel);
GLint i;
if (g->current.inBeginEnd) {
return;
}
switch (map) {
case GL_PIXEL_MAP_S_TO_S:
for (i = 0; i < p->mapStoSsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_I:
for (i = 0; i < p->mapItoIsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_R:
for (i = 0; i < p->mapItoRsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_G:
for (i = 0; i < p->mapItoGsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_B:
for (i = 0; i < p->mapItoBsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_A:
for (i = 0; i < p->mapItoAsize; i++) {
}
break;
case GL_PIXEL_MAP_R_TO_R:
for (i = 0; i < p->mapRtoRsize; i++) {
}
break;
case GL_PIXEL_MAP_G_TO_G:
for (i = 0; i < p->mapGtoGsize; i++) {
}
break;
case GL_PIXEL_MAP_B_TO_B:
for (i = 0; i < p->mapBtoBsize; i++) {
}
break;
case GL_PIXEL_MAP_A_TO_A:
for (i = 0; i < p->mapAtoAsize; i++) {
}
break;
default:
return;
}
}
{
CRContext *g = GetCurrentContext();
CRPixelState *p = &(g->pixel);
GLint i;
if (g->current.inBeginEnd) {
return;
}
switch (map) {
case GL_PIXEL_MAP_S_TO_S:
for (i = 0; i < p->mapStoSsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_I:
for (i = 0; i < p->mapItoIsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_R:
for (i = 0; i < p->mapItoRsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_G:
for (i = 0; i < p->mapItoGsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_B:
for (i = 0; i < p->mapItoBsize; i++) {
}
break;
case GL_PIXEL_MAP_I_TO_A:
for (i = 0; i < p->mapItoAsize; i++) {
}
break;
case GL_PIXEL_MAP_R_TO_R:
for (i = 0; i < p->mapRtoRsize; i++) {
}
break;
case GL_PIXEL_MAP_G_TO_G:
for (i = 0; i < p->mapGtoGsize; i++) {
}
break;
case GL_PIXEL_MAP_B_TO_B:
for (i = 0; i < p->mapBtoBsize; i++) {
}
break;
case GL_PIXEL_MAP_A_TO_A:
for (i = 0; i < p->mapAtoAsize; i++) {
}
break;
default:
return;
}
}
{
int j, i;
for (j=0;j<CR_MAX_BITARRAY;j++)
i = 0; /* silence compiler */
{
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
}
{
{
}
}
{
}
}
{
int j, i;
for (j=0;j<CR_MAX_BITARRAY;j++)
i = 0; /* silence compiler */
{
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
}
{
{
}
}
{
}
}
}
}
}
}
}
}
}
}
}
}