1 /*-------------------------------------------------------------------------
2 * drawElements Quality Program OpenGL ES Utilities
3 * ------------------------------------------------
5 * Copyright 2014 The Android Open Source Project
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 * \brief Render context implementation that does no rendering.
22 *//*--------------------------------------------------------------------*/
24 #include "tcuNullRenderContext.hpp"
25 #include "tcuTexture.hpp"
26 #include "tcuTextureUtil.hpp"
27 #include "deThreadLocal.hpp"
28 #include "gluRenderConfig.hpp"
29 #include "gluTextureUtil.hpp"
30 #include "glwEnums.hpp"
42 #include "tcuNullRenderContextFuncs.inl"
56 deUint32 allocate (void)
58 deUint32 object = ++m_lastObject;
60 object = ++m_lastObject; // Just ignore overflow.
64 void free (deUint32 object)
70 deUint32 m_lastObject;
76 Context (ContextType ctxType_);
80 Context (const Context&);
81 Context& operator= (const Context&);
83 void addExtension (const char* name);
86 // GL state exposed to implementation functions.
87 const ContextType ctxType;
92 string shadingLanguageVersion;
94 vector<string> extensionList;
95 vector<deUint32> compressedTextureList;
99 int pixelPackRowLength;
100 int pixelPackSkipRows;
101 int pixelPackSkipPixels;
102 int pixelPackAlignment;
104 GLuint pixelPackBufferBufferBinding;
106 ObjectManager shaders;
107 ObjectManager programs;
108 ObjectManager textures;
109 ObjectManager buffers;
110 ObjectManager renderbuffers;
111 ObjectManager framebuffers;
112 ObjectManager samplers;
113 ObjectManager vertexArrays;
114 ObjectManager queries;
115 ObjectManager transformFeedbacks;
116 ObjectManager programPipelines;
119 Context::Context (ContextType ctxType_)
121 , vendor ("drawElements")
123 , lastError (GL_NO_ERROR)
124 , pixelPackRowLength (0)
125 , pixelPackSkipRows (0)
126 , pixelPackSkipPixels (0)
127 , pixelPackAlignment (0)
128 , pixelPackBufferBufferBinding (0)
132 if (ctxType.getAPI() == ApiType::es(2, 0))
134 version = "OpenGL ES 2.0";
135 shadingLanguageVersion = "OpenGL ES GLSL ES 1.0";
137 else if (ctxType.getAPI() == ApiType::es(3, 0))
139 version = "OpenGL ES 3.0";
140 shadingLanguageVersion = "OpenGL ES GLSL ES 3.0";
142 else if (ctxType.getAPI() == ApiType::es(3, 1))
144 version = "OpenGL ES 3.1";
145 shadingLanguageVersion = "OpenGL ES GLSL ES 3.1";
146 addExtension("GL_OES_texture_stencil8");
147 addExtension("GL_OES_sample_shading");
148 addExtension("GL_OES_sample_variables");
149 addExtension("GL_OES_shader_multisample_interpolation");
150 addExtension("GL_OES_shader_image_atomic");
151 addExtension("GL_OES_texture_storage_multisample_2d_array");
152 addExtension("GL_KHR_blend_equation_advanced");
153 addExtension("GL_KHR_blend_equation_advanced_coherent");
154 addExtension("GL_EXT_shader_io_blocks");
155 addExtension("GL_EXT_geometry_shader");
156 addExtension("GL_EXT_geometry_point_size");
157 addExtension("GL_EXT_tessellation_shader");
158 addExtension("GL_EXT_tessellation_point_size");
159 addExtension("GL_EXT_gpu_shader5");
160 addExtension("GL_EXT_shader_implicit_conversions");
161 addExtension("GL_EXT_texture_buffer");
162 addExtension("GL_EXT_texture_cube_map_array");
163 addExtension("GL_EXT_draw_buffers_indexed");
164 addExtension("GL_EXT_texture_sRGB_decode");
165 addExtension("GL_EXT_texture_border_clamp");
166 addExtension("GL_KHR_debug");
167 addExtension("GL_EXT_primitive_bounding_box");
168 addExtension("GL_ANDROID_extension_pack_es31a");
169 addExtension("GL_EXT_copy_image");
171 else if (ctxType.getAPI() == ApiType::es(3, 2))
173 version = "OpenGL ES 3.2";
174 shadingLanguageVersion = "OpenGL ES GLSL ES 3.2";
176 else if (glu::isContextTypeGLCore(ctxType) && ctxType.getMajorVersion() == 3)
179 shadingLanguageVersion = "3.30";
181 else if (glu::isContextTypeGLCore(ctxType) && ctxType.getMajorVersion() == 4 && ctxType.getMinorVersion() <= 4)
184 shadingLanguageVersion = "4.40";
186 else if (glu::isContextTypeGLCore(ctxType) && ctxType.getMajorVersion() == 4 && ctxType.getMinorVersion() == 5)
189 shadingLanguageVersion = "4.50";
191 else if (glu::isContextTypeGLCore(ctxType) && ctxType.getMajorVersion() == 4 && ctxType.getMinorVersion() == 6)
194 shadingLanguageVersion = "4.60";
196 else if (glu::isContextTypeGLCompatibility(ctxType) && ctxType.getMajorVersion() == 4 && ctxType.getMinorVersion() <= 2)
199 shadingLanguageVersion = "4.20";
202 throw tcu::NotSupportedError("Unsupported GL version", "", __FILE__, __LINE__);
204 if (isContextTypeES(ctxType))
206 addExtension("GL_EXT_color_buffer_float");
207 addExtension("GL_EXT_color_buffer_half_float");
210 // support compressed formats
212 static deUint32 compressedFormats[] =
215 GL_COMPRESSED_R11_EAC,
216 GL_COMPRESSED_SIGNED_R11_EAC,
217 GL_COMPRESSED_RG11_EAC,
218 GL_COMPRESSED_SIGNED_RG11_EAC,
219 GL_COMPRESSED_RGB8_ETC2,
220 GL_COMPRESSED_SRGB8_ETC2,
221 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
222 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
223 GL_COMPRESSED_RGBA8_ETC2_EAC,
224 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
225 GL_COMPRESSED_RGBA_ASTC_4x4_KHR,
226 GL_COMPRESSED_RGBA_ASTC_5x4_KHR,
227 GL_COMPRESSED_RGBA_ASTC_5x5_KHR,
228 GL_COMPRESSED_RGBA_ASTC_6x5_KHR,
229 GL_COMPRESSED_RGBA_ASTC_6x6_KHR,
230 GL_COMPRESSED_RGBA_ASTC_8x5_KHR,
231 GL_COMPRESSED_RGBA_ASTC_8x6_KHR,
232 GL_COMPRESSED_RGBA_ASTC_8x8_KHR,
233 GL_COMPRESSED_RGBA_ASTC_10x5_KHR,
234 GL_COMPRESSED_RGBA_ASTC_10x6_KHR,
235 GL_COMPRESSED_RGBA_ASTC_10x8_KHR,
236 GL_COMPRESSED_RGBA_ASTC_10x10_KHR,
237 GL_COMPRESSED_RGBA_ASTC_12x10_KHR,
238 GL_COMPRESSED_RGBA_ASTC_12x12_KHR,
239 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR,
240 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR,
241 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR,
242 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR,
243 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR,
244 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR,
245 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR,
246 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR,
247 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR,
248 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR,
249 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR,
250 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR,
251 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR,
252 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR,
255 addExtension("GL_KHR_texture_compression_astc_hdr");
256 addExtension("GL_KHR_texture_compression_astc_ldr");
257 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(compressedFormats); ++ndx)
258 compressedTextureList.push_back(compressedFormats[ndx]);
262 Context::~Context (void)
266 void Context::addExtension (const char* name)
268 if (!extensions.empty())
272 extensionList.push_back(name);
275 static de::ThreadLocal s_currentCtx;
277 void setCurrentContext (Context* context)
279 s_currentCtx.set((void*)context);
282 Context* getCurrentContext (void)
284 return (Context*)s_currentCtx.get();
287 GLW_APICALL GLenum GLW_APIENTRY glGetError (void)
289 Context* const ctx = getCurrentContext();
290 const GLenum lastErr = ctx->lastError;
292 ctx->lastError = GL_NO_ERROR;
297 GLW_APICALL void GLW_APIENTRY glGetIntegerv (GLenum pname, GLint* params)
299 Context* const ctx = getCurrentContext();
303 case GL_NUM_EXTENSIONS:
304 *params = (int)ctx->extensionList.size();
307 case GL_MAX_VERTEX_ATTRIBS:
311 case GL_MAX_DRAW_BUFFERS:
312 case GL_MAX_COLOR_ATTACHMENTS:
316 case GL_MAX_TEXTURE_IMAGE_UNITS:
317 case GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS:
318 case GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS:
319 case GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS:
320 case GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS:
321 case GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS:
325 case GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS:
326 case GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS:
327 case GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS:
328 case GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS:
329 case GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS:
330 case GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS:
334 case GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS:
335 case GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS:
336 case GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS:
337 case GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS:
338 case GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS:
339 case GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS:
343 case GL_MAX_SHADER_STORAGE_BLOCK_SIZE:
347 case GL_MAX_GEOMETRY_OUTPUT_VERTICES:
351 case GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS:
355 case GL_MAX_GEOMETRY_SHADER_INVOCATIONS:
359 case GL_MAX_COLOR_TEXTURE_SAMPLES:
363 case GL_MAX_TEXTURE_SIZE:
364 case GL_MAX_CUBE_MAP_TEXTURE_SIZE:
365 case GL_MAX_3D_TEXTURE_SIZE:
366 case GL_MAX_RENDERBUFFER_SIZE:
367 case GL_MAX_TEXTURE_BUFFER_SIZE:
371 case GL_MAX_ARRAY_TEXTURE_LAYERS:
375 case GL_NUM_SHADER_BINARY_FORMATS:
379 case GL_NUM_COMPRESSED_TEXTURE_FORMATS:
380 *params = (int)ctx->compressedTextureList.size();
383 case GL_COMPRESSED_TEXTURE_FORMATS:
384 deMemcpy(params, &ctx->compressedTextureList[0], ctx->compressedTextureList.size()*sizeof(deUint32));
387 case GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:
391 case GL_MAX_UNIFORM_BUFFER_BINDINGS:
395 case GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT:
399 case GL_IMPLEMENTATION_COLOR_READ_FORMAT:
403 case GL_IMPLEMENTATION_COLOR_READ_TYPE:
404 *params = GL_UNSIGNED_BYTE;
407 case GL_SAMPLE_BUFFERS:
416 GLW_APICALL void GLW_APIENTRY glGetBooleanv (GLenum pname, GLboolean* params)
420 case GL_SHADER_COMPILER:
429 GLW_APICALL void GLW_APIENTRY glGetFloatv (GLenum pname, GLfloat* params)
433 case GL_ALIASED_LINE_WIDTH_RANGE:
434 case GL_ALIASED_POINT_SIZE_RANGE:
444 GLW_APICALL void GLW_APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint* params)
446 static const int s_sampleCounts[] = { 16, 8, 4, 2, 1 };
448 DE_UNREF(internalformat);
453 case GL_NUM_SAMPLE_COUNTS:
455 *params = DE_LENGTH_OF_ARRAY(s_sampleCounts);
459 deMemcpy(params, s_sampleCounts, de::min(bufSize, DE_LENGTH_OF_ARRAY(s_sampleCounts)));
467 GLW_APICALL const glw::GLubyte* GLW_APIENTRY glGetString (GLenum name)
469 Context* const ctx = getCurrentContext();
473 case GL_VENDOR: return (const glw::GLubyte*)ctx->vendor.c_str();
474 case GL_VERSION: return (const glw::GLubyte*)ctx->version.c_str();
475 case GL_RENDERER: return (const glw::GLubyte*)ctx->renderer.c_str();
476 case GL_SHADING_LANGUAGE_VERSION: return (const glw::GLubyte*)ctx->shadingLanguageVersion.c_str();
477 case GL_EXTENSIONS: return (const glw::GLubyte*)ctx->extensions.c_str();
479 ctx->lastError = GL_INVALID_ENUM;
484 GLW_APICALL const glw::GLubyte* GLW_APIENTRY glGetStringi (GLenum name, GLuint index)
486 Context* const ctx = getCurrentContext();
488 if (name == GL_EXTENSIONS)
490 if ((size_t)index < ctx->extensionList.size())
491 return (const glw::GLubyte*)ctx->extensionList[index].c_str();
494 ctx->lastError = GL_INVALID_VALUE;
500 ctx->lastError = GL_INVALID_ENUM;
505 GLW_APICALL GLuint GLW_APIENTRY glCreateProgram ()
507 Context* const ctx = getCurrentContext();
508 return (GLuint)ctx->programs.allocate();
511 GLW_APICALL GLuint GLW_APIENTRY glCreateShader (GLenum type)
513 Context* const ctx = getCurrentContext();
515 return (GLuint)ctx->shaders.allocate();
518 GLW_APICALL void GLW_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params)
522 if (pname == GL_COMPILE_STATUS)
526 GLW_APICALL void GLW_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params)
530 if (pname == GL_LINK_STATUS)
534 GLW_APICALL void GLW_APIENTRY glGenTextures (GLsizei n, GLuint* textures)
536 Context* const ctx = getCurrentContext();
540 for (int ndx = 0; ndx < n; ndx++)
541 textures[ndx] = ctx->textures.allocate();
545 GLW_APICALL void GLW_APIENTRY glGenQueries (GLsizei n, GLuint* ids)
547 Context* const ctx = getCurrentContext();
551 for (int ndx = 0; ndx < n; ndx++)
552 ids[ndx] = ctx->queries.allocate();
556 GLW_APICALL void GLW_APIENTRY glGenBuffers (GLsizei n, GLuint* buffers)
558 Context* const ctx = getCurrentContext();
562 for (int ndx = 0; ndx < n; ndx++)
563 buffers[ndx] = ctx->buffers.allocate();
567 GLW_APICALL void GLW_APIENTRY glGenRenderbuffers (GLsizei n, GLuint* renderbuffers)
569 Context* const ctx = getCurrentContext();
573 for (int ndx = 0; ndx < n; ndx++)
574 renderbuffers[ndx] = ctx->renderbuffers.allocate();
578 GLW_APICALL void GLW_APIENTRY glGenFramebuffers (GLsizei n, GLuint* framebuffers)
580 Context* const ctx = getCurrentContext();
584 for (int ndx = 0; ndx < n; ndx++)
585 framebuffers[ndx] = ctx->framebuffers.allocate();
589 GLW_APICALL void GLW_APIENTRY glGenVertexArrays (GLsizei n, GLuint* arrays)
591 Context* const ctx = getCurrentContext();
595 for (int ndx = 0; ndx < n; ndx++)
596 arrays[ndx] = ctx->vertexArrays.allocate();
600 GLW_APICALL void GLW_APIENTRY glGenSamplers (GLsizei count, GLuint* samplers)
602 Context* const ctx = getCurrentContext();
606 for (int ndx = 0; ndx < count; ndx++)
607 samplers[ndx] = ctx->samplers.allocate();
611 GLW_APICALL void GLW_APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint* ids)
613 Context* const ctx = getCurrentContext();
617 for (int ndx = 0; ndx < n; ndx++)
618 ids[ndx] = ctx->transformFeedbacks.allocate();
622 GLW_APICALL void GLW_APIENTRY glGenProgramPipelines (GLsizei n, GLuint* pipelines)
624 Context* const ctx = getCurrentContext();
628 for (int ndx = 0; ndx < n; ndx++)
629 pipelines[ndx] = ctx->programPipelines.allocate();
633 GLW_APICALL GLvoid* GLW_APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)
635 Context* const ctx = getCurrentContext();
642 if (ctx->lastError == GL_NO_ERROR)
643 ctx->lastError = GL_INVALID_OPERATION;
648 GLW_APICALL GLenum GLW_APIENTRY glCheckFramebufferStatus (GLenum target)
651 return GL_FRAMEBUFFER_COMPLETE;
654 GLW_APICALL void GLW_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
659 Context* const ctx = getCurrentContext();
660 const tcu::Vec4 clearColor (0.0f, 0.0f, 0.0f, 1.0f); // black
661 const tcu::TextureFormat transferFormat = glu::mapGLTransferFormat(format, type);
664 if (transferFormat.order == TextureFormat::CHANNELORDER_LAST || transferFormat.type == TextureFormat::CHANNELTYPE_LAST)
666 if (ctx->lastError == GL_NO_ERROR)
667 ctx->lastError = GL_INVALID_ENUM;
671 // unsupported formats
672 if (!(format == GL_RGBA && type == GL_UNSIGNED_BYTE) &&
673 !(format == GL_RGBA_INTEGER && type == GL_INT) &&
674 !(format == GL_RGBA_INTEGER && type == GL_UNSIGNED_INT) &&
675 !(format == GL_RGBA && type == GL_FLOAT))
677 if (ctx->lastError == GL_NO_ERROR)
678 ctx->lastError = GL_INVALID_ENUM;
683 if (width < 0 || height < 0)
685 if (ctx->lastError == GL_NO_ERROR)
686 ctx->lastError = GL_INVALID_OPERATION;
691 if (ctx->pixelPackBufferBufferBinding)
694 // read to use pointer
696 const int targetRowLength = (ctx->pixelPackRowLength != 0) ? (ctx->pixelPackRowLength) : (width);
697 const int targetSkipRows = ctx->pixelPackSkipRows;
698 const int targetSkipPixels = ctx->pixelPackSkipPixels;
699 const int infiniteHeight = targetSkipRows + height; // as much as needed
700 const int targetRowPitch = (ctx->pixelPackAlignment == 0) ? (targetRowLength * transferFormat.getPixelSize()) : (deAlign32(targetRowLength * transferFormat.getPixelSize(), ctx->pixelPackAlignment));
702 // Create access to the whole copy target
703 const tcu::PixelBufferAccess targetAccess (transferFormat, targetRowLength, infiniteHeight, 1, targetRowPitch, 0, pixels);
705 // Select (skip_pixels, skip_rows, width, height) subregion from it. Clip to horizontal boundaries
706 const tcu::PixelBufferAccess targetRectAccess = tcu::getSubregion(targetAccess,
707 de::clamp(targetSkipPixels, 0, targetAccess.getWidth()-1),
709 de::clamp(width, 0, de::max(0, targetAccess.getWidth() - targetSkipPixels)),
712 tcu::clear(targetRectAccess, clearColor);
716 GLW_APICALL void GLW_APIENTRY glBindBuffer (GLenum target, GLuint buffer)
718 Context* const ctx = getCurrentContext();
720 if (target == GL_PIXEL_PACK_BUFFER)
721 ctx->pixelPackBufferBufferBinding = buffer;
724 GLW_APICALL void GLW_APIENTRY glDeleteBuffers (GLsizei n, const GLuint* buffers)
726 Context* const ctx = getCurrentContext();
728 for (GLsizei ndx = 0; ndx < n; ++ndx)
729 if (buffers[ndx] && buffers[ndx] == ctx->pixelPackBufferBufferBinding)
730 ctx->pixelPackBufferBufferBinding = 0;
733 GLW_APICALL GLint GLW_APIENTRY glGetAttribLocation (GLuint program, const GLchar* name)
736 return (GLint)(deStringHash(name) & 0x7FFFFFFF);
739 void initFunctions (glw::Functions* gl)
741 # include "tcuNullRenderContextInitFuncs.inl"
744 static tcu::RenderTarget toRenderTarget (const RenderConfig& renderCfg)
746 const int width = getValueOrDefault(renderCfg, &RenderConfig::width, 256);
747 const int height = getValueOrDefault(renderCfg, &RenderConfig::height, 256);
748 const int redBits = getValueOrDefault(renderCfg, &RenderConfig::redBits, 8);
749 const int greenBits = getValueOrDefault(renderCfg, &RenderConfig::greenBits, 8);
750 const int blueBits = getValueOrDefault(renderCfg, &RenderConfig::blueBits, 8);
751 const int alphaBits = getValueOrDefault(renderCfg, &RenderConfig::alphaBits, 8);
752 const int depthBits = getValueOrDefault(renderCfg, &RenderConfig::depthBits, 24);
753 const int stencilBits = getValueOrDefault(renderCfg, &RenderConfig::stencilBits, 8);
754 const int numSamples = getValueOrDefault(renderCfg, &RenderConfig::numSamples, 0);
756 return tcu::RenderTarget(width, height, tcu::PixelFormat(redBits, greenBits, blueBits, alphaBits), depthBits, stencilBits, numSamples);
759 RenderContext::RenderContext (const RenderConfig& renderCfg)
760 : m_ctxType (renderCfg.type)
761 , m_renderTarget (toRenderTarget(renderCfg))
762 , m_context (DE_NULL)
764 m_context = new Context(m_ctxType);
766 initFunctions(&m_functions);
767 setCurrentContext(m_context);
770 RenderContext::~RenderContext (void)
772 setCurrentContext(DE_NULL);
776 void RenderContext::postIterate (void)
780 void RenderContext::makeCurrent (void)