|
Axmol 3.0.0-89d6d9a
|
Use to create resoureces. More...
#include <GraphicsDeviceGL.h>
Inherits GraphicsDevice.
Public Member Functions | |
| GraphicsContext * | createGraphicsContext (SurfaceHandle) override |
| Create a GraphicsContext object, not auto released. | |
| Buffer * | createBuffer (size_t size, BufferType type, BufferUsage usage, const void *initial) override |
| New a Buffer object, not auto released. | |
| Texture * | createTexture (const TextureDesc &descriptor, std::optional< Color > clearColorHint=std::nullopt) override |
| New a Texture object, not auto released. | |
| Texture * | createTextureFromNativeHandle (const ExternalTextureDesc &descriptor) override |
| Wrap a backend-native texture owned by an external runtime, not auto released. | |
| GraphicsPipeline * | createGraphicsPipeline () override |
| New a GraphicsPipeline object, not auto released. | |
| ComputePipeline * | createComputePipeline (Program *program) override |
| Create a compute pipeline from a compute program, not auto released. | |
| Program * | createProgram (Data vsData, Data fsData) override |
| New a Program, not auto released. | |
| std::string | getVendor () const override |
| below is driver info API | |
| std::string | getRenderer () const override |
| Get the full name of the vendor device. | |
| std::string | getVersion () const override |
| Get version name. | |
| int | getShaderProfile () const |
| Returns the active GLSL/ESSL profile as 330, 430, 300, 310, etc. | |
| bool | hasExtension (std::string_view) const override |
| Check does device has extension. | |
| std::string | dumpExtensions () const override |
| Dump all extensions to string. | |
| bool | checkForFeatureSupported (FeatureType feature) override |
| Check if feature supported by OpenGL ES. | |
| Public Member Functions inherited from GraphicsDevice | |
| int | getMaxTextureSize () const |
| Get maximum texture size. | |
| int | getMaxAttributes () const |
| Get maximum attribute counts. | |
| int | getMaxTextureUnits () const |
| Get maximum texture unit. | |
| int | getMaxSamplesAllowed () const |
| Get maximum sampler count. | |
Use to create resoureces.
|
overridevirtual |
Create a GraphicsContext object, not auto released.
Implements GraphicsDevice.
|
overridevirtual |
New a Buffer object, not auto released.
| size | Specifies the size in bytes of the buffer object's new data store. |
| type | Specifies the target buffer object. The symbolic constant must be BufferType::VERTEX or BufferType::INDEX. |
| usage | Specifies the expected usage pattern of the data store. The symbolic constant must be BufferUsage::STATIC, BufferUsage::DYNAMIC. |
Implements GraphicsDevice.
|
overridevirtual |
New a Texture object, not auto released.
| descriptor | Specifies texture description. |
Implements GraphicsDevice.
|
overridevirtual |
New a GraphicsPipeline object, not auto released.
| descriptor | Specifies render pipeline description. |
Implements GraphicsDevice.
|
overridevirtual |
Create a compute pipeline from a compute program, not auto released.
| program | Specifies the compute program. |
Implements GraphicsDevice.
|
overridevirtual |
New a Program, not auto released.
| vertexShader | Specifes this is a vertex shader source. |
| fragmentShader | Specifes this is a fragment shader source. |
Implements GraphicsDevice.
|
overridevirtual |
below is driver info API
Get vendor device name.
Implements GraphicsDevice.
|
overridevirtual |
Get the full name of the vendor device.
Implements GraphicsDevice.
|
overridevirtual |
|
overridevirtual |
Check if feature supported by OpenGL ES.
| feature | Specify feature to be query. |
Implements GraphicsDevice.