The classes for OpenGL versions 3.1 through to 4.3 are:Ī pointer to an object of the class corresponding to the version and profile of OpenGL in use can be obtained from versionFunctions(). Qt provides classes for all version and Core and Compatibility profile combinations. Therefore if you wish to target new OpenGL features on macOS then you should ensure that you request a Core profile context via setProfile(). Please note that some vendors, notably Apple, do not implement the Compatibility profile. For new OpenGL code the Core profile should be preferred. In this way the Compatibility profile classes allow use of newer OpenGL functionality but also allows you to keep using your legacy OpenGL code. The Compatibility profile contains all functions in the Core profile of the same version plus all of the functions that were removed in OpenGL 3.1. The Core profile does not include any of the functions that were removed in OpenGL 3.1. Two profiles are currently defined for OpenGL: Core and Compatibility. With OpenGL 3.2 the concept of profiles was introduced. OpenGL version 3.1 removed many deprecated functions leading to a much simpler and generic API. Where each class inherits from QAbstractOpenGLFunctions. For OpenGL versions 1.0 through to 3.0 there are no profiles, leading to the classes:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |