#include <stdlib.h>#include <stdio.h>#include <OSGConfig.h>#include <OSGTextureChunk.h>#include <OSGImage.h>#include <OSGMatrixCameraDecorator.h>#include <OSGTileCameraDecorator.h>#include <OSGRenderAction.h>#include <OSGSimpleAttachments.h>#include "OSGFBOViewport.h"#include <OSGShadowViewport.h>#include <OSGForeground.h>#include <OSGTextureGrabForeground.h>Go to the source code of this file.
| #define GL_ARB_draw_buffers 1 |
| #define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 |
Definition at line 63 of file OSGFBOViewport.cpp.
| #define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 |
Definition at line 64 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 |
Definition at line 65 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 |
Definition at line 66 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 |
Definition at line 67 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 |
Definition at line 68 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 |
Definition at line 69 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 |
Definition at line 70 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 |
Definition at line 71 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 |
Definition at line 72 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 |
Definition at line 73 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 |
Definition at line 74 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8 |
Definition at line 75 of file OSGFBOViewport.cpp.
| #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 |
Definition at line 76 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA |
Definition at line 77 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB |
Definition at line 78 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC |
Definition at line 79 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD |
Definition at line 80 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::checkFrameBufferStatus().
| #define GL_FRAMEBUFFER_STATUS_ERROR_EXT 0x8CDE |
Definition at line 81 of file OSGFBOViewport.cpp.
| #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF |
| #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 |
| #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 |
Definition at line 84 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 |
Definition at line 85 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 |
Definition at line 86 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 |
Definition at line 87 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 |
Definition at line 88 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 |
Definition at line 89 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 |
Definition at line 90 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 |
Definition at line 91 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 |
Definition at line 92 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA |
Definition at line 93 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB |
Definition at line 94 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC |
Definition at line 95 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT13_EXT 0x8CED |
Definition at line 96 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE |
Definition at line 97 of file OSGFBOViewport.cpp.
| #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF |
Definition at line 98 of file OSGFBOViewport.cpp.
| #define GL_DEPTH_ATTACHMENT_EXT 0x8D00 |
Definition at line 99 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::initialize(), and osg::FBOViewport::render().
| #define GL_STENCIL_ATTACHMENT_EXT 0x8D20 |
Definition at line 100 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::initialize(), and osg::FBOViewport::render().
| #define GL_FRAMEBUFFER_EXT 0x8D40 |
Definition at line 101 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::bind(), osg::FBOViewport::checkFrameBufferStatus(), osg::FBOViewport::initialize(), osg::FBOViewport::setTarget(), and osg::FBOViewport::stop().
| #define GL_RENDERBUFFER_EXT 0x8D41 |
| #define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 |
Definition at line 103 of file OSGFBOViewport.cpp.
| #define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 |
Definition at line 104 of file OSGFBOViewport.cpp.
| #define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 |
Definition at line 105 of file OSGFBOViewport.cpp.
| #define GL_STENCIL_INDEX_EXT 0x8D45 |
Definition at line 106 of file OSGFBOViewport.cpp.
| #define GL_STENCIL_INDEX1_EXT 0x8D46 |
| #define GL_STENCIL_INDEX4_EXT 0x8D47 |
| #define GL_STENCIL_INDEX8_EXT 0x8D48 |
| #define GL_STENCIL_INDEX16_EXT 0x8D49 |
| #define GL_DEPTH_COMPONENT_ARB 0x1902 |
Definition at line 118 of file OSGFBOViewport.cpp.
| #define GL_DEPTH_COMPONENT16_ARB 0x81A5 |
Definition at line 122 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::initialize(), and osg::FBOViewport::render().
| #define GL_DEPTH_COMPONENT24_ARB 0x81A6 |
| #define GL_DEPTH_COMPONENT32_ARB 0x81A7 |
Definition at line 124 of file OSGFBOViewport.cpp.
Referenced by osg::FBOViewport::initialize(), and osg::FBOViewport::render().
| #define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A |
Definition at line 125 of file OSGFBOViewport.cpp.
| #define GL_DEPTH_TEXTURE_MODE_ARB 0x884B |
Definition at line 126 of file OSGFBOViewport.cpp.
| #define GL_TEXTURE_COMPARE_MODE_ARB 0x884C |
Definition at line 130 of file OSGFBOViewport.cpp.
| #define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D |
Definition at line 131 of file OSGFBOViewport.cpp.
| #define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E |
Definition at line 132 of file OSGFBOViewport.cpp.
| #define GL_DEPTH_STENCIL_EXT 0x84F9 |
| #define GL_UNSIGNED_INT_24_8_EXT 0x84FA |
Definition at line 137 of file OSGFBOViewport.cpp.
| #define GL_DEPTH24_STENCIL8_EXT 0x88F0 |
Definition at line 138 of file OSGFBOViewport.cpp.
| #define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1 |
Definition at line 139 of file OSGFBOViewport.cpp.
| typedef const GLenum* bufs |
Definition at line 188 of file OSGFBOViewport.cpp.
| typedef GLuint framebuffer |
Definition at line 191 of file OSGFBOViewport.cpp.
| typedef GLenum GLenum GLuint renderbuffer |
Definition at line 193 of file OSGFBOViewport.cpp.
| typedef GLuint * framebuffers |
Definition at line 197 of file OSGFBOViewport.cpp.
| typedef GLuint * renderbuffers |
Definition at line 199 of file OSGFBOViewport.cpp.
| typedef GLenum attachment |
Definition at line 201 of file OSGFBOViewport.cpp.
| typedef GLenum GLenum renderbuffertarget |
Definition at line 201 of file OSGFBOViewport.cpp.
| typedef GLenum GLenum textarget |
Definition at line 203 of file OSGFBOViewport.cpp.
| typedef GLenum GLenum GLuint texture |
Definition at line 203 of file OSGFBOViewport.cpp.
| typedef GLenum GLenum GLuint GLint level |
Definition at line 203 of file OSGFBOViewport.cpp.
| typedef GLenum GLenum GLuint GLint GLint zoffset |
Definition at line 207 of file OSGFBOViewport.cpp.
| typedef GLenum pname |
Definition at line 215 of file OSGFBOViewport.cpp.
| typedef GLenum GLint * params |
Definition at line 215 of file OSGFBOViewport.cpp.
| typedef GLenum internalformat |
Definition at line 223 of file OSGFBOViewport.cpp.
Definition at line 223 of file OSGFBOViewport.cpp.
Definition at line 223 of file OSGFBOViewport.cpp.
| typedef void | ( | OSG_APIENTRY * | PFNGLDRAWBUFFERSARBPROC | ) |
| typedef GLenum | ( | OSG_APIENTRY * | PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC | ) |
| typedef GLboolean | ( | OSG_APIENTRY * | PFNGLISFRAMEBUFFEREXTPROC | ) |
| bool @1321::checkGLError | ( | const char * | where | ) | [static] |
Definition at line 228 of file OSGFBOViewport.cpp.
References FWARNING, and GLenum.
Referenced by osg::FBOViewport::initialize(), osg::FBOViewport::render(), and osg::FBOViewport::setTarget().
00229 { 00230 GLenum errCode = 0; 00231 if ((errCode = glGetError()) != GL_NO_ERROR) 00232 { 00233 const GLubyte *errString = gluErrorString(errCode); 00234 FWARNING(("%s OpenGL Error: %s!\n", where, errString)); 00235 } 00236 00237 return errCode == GL_NO_ERROR; 00238 }
Char8 cvsid_cpp[] = "@(#)$Id: OSGFBOViewport.cpp,v 1.8 2007/06/22 00:13:01 dirk Exp $" [static] |
Definition at line 1337 of file OSGFBOViewport.cpp.
Char8 cvsid_hpp[] = OSGFBOVIEWPORTBASE_HEADER_CVSID [static] |
Definition at line 1338 of file OSGFBOViewport.cpp.
Char8 cvsid_inl[] = OSGFBOVIEWPORTBASE_INLINE_CVSID [static] |
Definition at line 1339 of file OSGFBOViewport.cpp.
Char8 cvsid_fields_hpp[] = OSGFBOVIEWPORTFIELDS_HEADER_CVSID [static] |
Definition at line 1341 of file OSGFBOViewport.cpp.
1.5.5