Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2013-07-16 15:15:07
Size: 1587
Editor: RainerDeyke
Comment: Turned function and attributes references into links.
Revision 3 as of 2013-07-16 15:16:09
Size: 1602
Editor: RainerDeyke
Comment: Turned another attribute reference into a links.
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
This enumeration is used in conjunction with [[SDL_GL_SetAttribute]] and [[SDL_GLattr|SDL_GL_CONTEXT_PROFILE_MASK]]. Although the name SDL_GL_CONTEXT_PROFILE_MASK implies that multiple flags can be OR'd together, the profiles are mutually exclusive, and [[SDL_GL_SetAttribute]] accepts at most one of them. Setting the [[SDL_GLattr|SDL_GL_CONTEXT_PROFILE_MASK]] attribute to 0 leaves the choice of profile up to SDL. Should be used in conjunction with the [[SDL_GLattr|SDL_GL_CONTEXT_MAJOR_VERSION]] and [[SDL_GLattr|SDL_GL_CONTEXT_MINOR_VERSION]] attributes, since OpenGL profiles are defined relative to a particular version of OpenGL. There is no way to distinguish between the common and common lite profiles of OpenGL ES versions 1.0 and 1.1. This enumeration is used in conjunction with [[SDL_GL_SetAttribute]] and [[SDL_GLattr|SDL_GL_CONTEXT_PROFILE_MASK]]. Although the name [[SDL_GLattr|SDL_GL_CONTEXT_PROFILE_MASK]] implies that multiple flags can be OR'd together, the profiles are mutually exclusive, and [[SDL_GL_SetAttribute]] accepts at most one of them. Setting the [[SDL_GLattr|SDL_GL_CONTEXT_PROFILE_MASK]] attribute to 0 leaves the choice of profile up to SDL. Should be used in conjunction with the [[SDL_GLattr|SDL_GL_CONTEXT_MAJOR_VERSION]] and [[SDL_GLattr|SDL_GL_CONTEXT_MINOR_VERSION]] attributes, since OpenGL profiles are defined relative to a particular version of OpenGL. There is no way to distinguish between the common and common lite profiles of OpenGL ES versions 1.0 and 1.1.

DRAFT

SDL_Enumeration

An enumeration of OpenGL profiles.

Values

SDL_GL_CONTEXT_PROFILE_CORE

OpenGL core profile - deprecated functions are disabled

SDL_GL_CONTEXT_PROFILE_COMPATIBILITY

OpenGL compatibility profile - deprecated functions are allowed

SDL_GL_CONTEXT_PROFILE_ES

OpenGL ES profile - only a subset of the base OpenGL functionality is available

Code Examples

SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_ES);

Remarks

This enumeration is used in conjunction with SDL_GL_SetAttribute and SDL_GL_CONTEXT_PROFILE_MASK. Although the name SDL_GL_CONTEXT_PROFILE_MASK implies that multiple flags can be OR'd together, the profiles are mutually exclusive, and SDL_GL_SetAttribute accepts at most one of them. Setting the SDL_GL_CONTEXT_PROFILE_MASK attribute to 0 leaves the choice of profile up to SDL. Should be used in conjunction with the SDL_GL_CONTEXT_MAJOR_VERSION and SDL_GL_CONTEXT_MINOR_VERSION attributes, since OpenGL profiles are defined relative to a particular version of OpenGL. There is no way to distinguish between the common and common lite profiles of OpenGL ES versions 1.0 and 1.1.


CategoryEnum, CategoryVideo

None: SDL_GLprofile (last edited 2016-03-24 23:11:22 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit