VirtualBox

Changeset 25423 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 16, 2009 10:21:40 AM (15 years ago)
Author:
vboxsync
Message:

2d: more FBO support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGL2D.h

    r25385 r25423  
    159159typedef GLboolean (APIENTRY *PFNVBOXVHWA_UNMAP_BUFFER)(GLenum target);
    160160
     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
     169typedef GLboolean (APIENTRY *PFNVBOXVHWA_IS_FRAMEBUFFER)(GLuint framebuffer);
     170typedef GLvoid (APIENTRY *PFNVBOXVHWA_BIND_FRAMEBUFFER)(GLenum target, GLuint framebuffer);
     171typedef GLvoid (APIENTRY *PFNVBOXVHWA_DELETE_FRAMEBUFFERS)(GLsizei n, const GLuint *framebuffers);
     172typedef GLvoid (APIENTRY *PFNVBOXVHWA_GEN_FRAMEBUFFERS)(GLsizei n, GLuint *framebuffers);
     173typedef GLenum (APIENTRY *PFNVBOXVHWA_CHECK_FRAMEBUFFER_STATUS)(GLenum target);
     174typedef GLvoid (APIENTRY *PFNVBOXVHWA_FRAMEBUFFER_TEXTURE1D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
     175typedef GLvoid (APIENTRY *PFNVBOXVHWA_FRAMEBUFFER_TEXTURE2D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
     176typedef GLvoid (APIENTRY *PFNVBOXVHWA_FRAMEBUFFER_TEXTURE3D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
     177typedef GLvoid (APIENTRY *PFNVBOXVHWA_GET_FRAMEBUFFER_ATTACHMENT_PARAMETRIV)(GLenum target, GLenum attachment, GLenum pname, GLint *params);
     178
    161179
    162180/*****************/
     
    209227extern PFNVBOXVHWA_MAP_BUFFER vboxglMapBuffer;
    210228extern PFNVBOXVHWA_UNMAP_BUFFER vboxglUnmapBuffer;
     229
     230extern PFNVBOXVHWA_IS_FRAMEBUFFER vboxglIsFramebuffer;
     231extern PFNVBOXVHWA_BIND_FRAMEBUFFER vboxglBindFramebuffer;
     232extern PFNVBOXVHWA_DELETE_FRAMEBUFFERS vboxglDeleteFramebuffers;
     233extern PFNVBOXVHWA_GEN_FRAMEBUFFERS vboxglGenFramebuffers;
     234extern PFNVBOXVHWA_CHECK_FRAMEBUFFER_STATUS vboxglCheckFramebufferStatus;
     235extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE1D vboxglFramebufferTexture1D;
     236extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE2D vboxglFramebufferTexture2D;
     237extern PFNVBOXVHWA_FRAMEBUFFER_TEXTURE3D vboxglFramebufferTexture3D;
     238extern PFNVBOXVHWA_GET_FRAMEBUFFER_ATTACHMENT_PARAMETRIV vboxglGetFramebufferAttachmentParameteriv;
     239
    211240
    212241class VBoxGLInfo
     
    219248        mTextureNP2Supported(false),
    220249        mPBOSupported(false),
     250        mFBOSupported(false),
    221251        mMultiTexNumSupported(1), /* 1 would mean it is not supported */
    222252        m_GL_ARB_multitexture(false),
     
    228258        m_GL_NV_texture_rectangle(false),
    229259        m_GL_ARB_texture_non_power_of_two(false),
     260        m_GL_EXT_framebuffer_object(false),
    230261        mInitialized(false)
    231262    {}
     
    240271    bool isTextureNP2Supported() const { return mTextureNP2Supported; }
    241272    bool isPBOSupported() const { return mPBOSupported; }
     273    bool isFBOSupported() const { return mFBOSupported; }
    242274    /* 1 would mean it is not supported */
    243275    int getMultiTexNumSupported() const { return mMultiTexNumSupported; }
     
    252284    bool mTextureNP2Supported;
    253285    bool mPBOSupported;
     286    bool mFBOSupported;
    254287    int mMultiTexNumSupported; /* 1 would mean it is not supported */
    255288
     
    262295    bool m_GL_NV_texture_rectangle;
    263296    bool m_GL_ARB_texture_non_power_of_two;
     297    bool m_GL_EXT_framebuffer_object;
    264298
    265299    bool mInitialized;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette