Lines Matching refs:surface
93 static void ggl_bindTexture(void* con, const GGLSurface* surface) in ggl_bindTexture() argument
96 if (surface->format != c->activeTMU->surface.format) in ggl_bindTexture()
98 ggl_set_surface(c, &(c->activeTMU->surface), surface); in ggl_bindTexture()
102 static void ggl_bindTextureLod(void* con, GGLuint tmu,const GGLSurface* surface) in ggl_bindTextureLod() argument
106 ggl_set_surface(c, &c->state.texture[tmu].surface, surface); in ggl_bindTextureLod()
109 static void ggl_colorBuffer(void* con, const GGLSurface* surface) in ggl_colorBuffer() argument
112 if (surface->format != c->state.buffers.color.format) in ggl_colorBuffer()
115 if (surface->width > c->state.buffers.coverageBufferSize) { in ggl_colorBuffer()
118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2); in ggl_colorBuffer()
120 c->state.buffers.coverage ? surface->width : 0; in ggl_colorBuffer()
122 ggl_set_surface(c, &(c->state.buffers.color), surface); in ggl_colorBuffer()
124 ggl_set_surface(c, &(c->state.buffers.read), surface); in ggl_colorBuffer()
129 static void ggl_readBuffer(void* con, const GGLSurface* surface) in ggl_readBuffer() argument
132 ggl_set_surface(c, &(c->state.buffers.read), surface); in ggl_readBuffer()
135 static void ggl_depthBuffer(void* con, const GGLSurface* surface) in ggl_depthBuffer() argument
138 if (surface->format == GGL_PIXEL_FORMAT_Z_16) { in ggl_depthBuffer()
139 ggl_set_surface(c, &(c->state.buffers.depth), surface); in ggl_depthBuffer()