Changeset 25423 in vbox for trunk/include/VBox
- Timestamp:
- Dec 16, 2009 10:21:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGL2D.h
r25385 r25423 159 159 typedef GLboolean (APIENTRY *PFNVBOXVHWA_UNMAP_BUFFER)(GLenum target); 160 160 161 /* GL_EXT_framebuffer_object */ 162 #ifndef GL_FRAMEBUFFER 163 # define GL_FRAMEBUFFER 0x8D40 164 #endif 165 #ifndef GL_COLOR_ATTACHMENT0 166 # define GL_COLOR_ATTACHMENT0 0x8CE0 167 #endif 168 169 typedef GLboolean (APIENTRY *PFNVBOXVHWA_IS_FRAMEBUFFER)(GLuint framebuffer); 170 typedef GLvoid (APIENTRY *PFNVBOXVHWA_BIND_FRAMEBUFFER)(GLenum target, GLuint framebuffer); 171 typedef GLvoid (APIENTRY *PFNVBOXVHWA_DELETE_FRAMEBUFFERS)(GLsizei n, const GLuint *framebuffers); 172 typedef GLvoid (APIENTRY *PFNVBOXVHWA_GEN_FRAMEBUFFERS)(GLsizei n, GLuint *framebuffers); 173 typedef GLenum (APIENTRY *PFNVBOXVHWA_CHECK_FRAMEBUFFER_STATUS)(GLenum target); 174 typedef GLvoid (APIENTRY *PFNVBOXVHWA_FRAMEBUFFER_TEXTURE1D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); 175 typedef GLvoid (APIENTRY *PFNVBOXVHWA_FRAMEBUFFER_TEXTURE2D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); 176 typedef GLvoid (APIENTRY *PFNVBOXVHWA_FRAMEBUFFER_TEXTURE3D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); 177 typedef GLvoid (APIENTRY *PFNVBOXVHWA_GET_FRAMEBUFFER_ATTACHMENT_PARAMETRIV)(GLenum target, GLenum attachment, GLenum pname, GLint *params); 178 161 179 162 180 /*****************/ … … 209 227 extern PFNVBOXVHWA_MAP_BUFFER vboxglMapBuffer; 210 228 extern PFNVBOXVHWA_UNMAP_BUFFER vboxglUnmapBuffer; 229 230 extern PFNVBOXVHWA_IS_FRAMEBUFFER vboxglIsFramebuffer; 231 extern PFNVBOXVHWA_BIND_FRAMEBUFFER vboxglBindFramebuffer; 232 extern PFNVBOXVHWA_DELETE_FRAMEBUFFERS vboxglDeleteFramebuffers; 233 extern PFNVBOXVHWA_GEN_FRAMEBUFFERS vboxglGenFramebuffers; 234 extern PFNVBOXVHWA_CHECK_FRAMEBUFFER_STATUS vboxglCheckFramebufferStatus; 235 extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE1D vboxglFramebufferTexture1D; 236 extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE2D vboxglFramebufferTexture2D; 237 extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE3D vboxglFramebufferTexture3D; 238 extern PFNVBOXVHWA_GET_FRAMEBUFFER_ATTACHMENT_PARAMETRIV vboxglGetFramebufferAttachmentParameteriv; 239 211 240 212 241 class VBoxGLInfo … … 219 248 mTextureNP2Supported(false), 220 249 mPBOSupported(false), 250 mFBOSupported(false), 221 251 mMultiTexNumSupported(1), /* 1 would mean it is not supported */ 222 252 m_GL_ARB_multitexture(false), … … 228 258 m_GL_NV_texture_rectangle(false), 229 259 m_GL_ARB_texture_non_power_of_two(false), 260 m_GL_EXT_framebuffer_object(false), 230 261 mInitialized(false) 231 262 {} … … 240 271 bool isTextureNP2Supported() const { return mTextureNP2Supported; } 241 272 bool isPBOSupported() const { return mPBOSupported; } 273 bool isFBOSupported() const { return mFBOSupported; } 242 274 /* 1 would mean it is not supported */ 243 275 int getMultiTexNumSupported() const { return mMultiTexNumSupported; } … … 252 284 bool mTextureNP2Supported; 253 285 bool mPBOSupported; 286 bool mFBOSupported; 254 287 int mMultiTexNumSupported; /* 1 would mean it is not supported */ 255 288 … … 262 295 bool m_GL_NV_texture_rectangle; 263 296 bool m_GL_ARB_texture_non_power_of_two; 297 bool m_GL_EXT_framebuffer_object; 264 298 265 299 bool mInitialized;
Note:
See TracChangeset
for help on using the changeset viewer.