4.1.3.1. Buffer
This class provides tools to manage OpenGL Buffer Objects.
Target name |
Purpose |
ARRAY_BUFFER |
Vertex attributes |
ATOMIC_COUNTER_BUFFER |
Atomic counter storage |
COPY_READ_BUFFER |
Buffer copy source |
COPY_WRITE_BUFFER |
Buffer copy destination |
DISPATCH_INDIRECT_BUFFER |
Indirect compute dispatch commands |
DRAW_INDIRECT_BUFFER |
Indirect command arguments |
ELEMENT_ARRAY_BUFFER |
Vertex array indices |
PIXEL_PACK_BUFFER |
Pixel read target |
PIXEL_UNPACK_BUFFER |
Texture data source |
SHADER_STORAGE_BUFFER |
Read=write storage for shaders |
TEXTURE_BUFFER |
Texture data buffer |
TRANSFORM_FEEDBACK_BUFFER |
Transform feedback buffer |
UNIFORM_BUFFER |
Uniform block storage |
-
class PyOpenGLng.HighLevelApi.Buffer.GlArrayBuffer(data=None)[source]
Bases: PyOpenGLng.HighLevelApi.Buffer.GlBuffer
This class wraps an OpenGl Array Buffer.
-
_logger = <logging.Logger object at 0x5328290>
-
_target = 34962
-
bind_at_location(location)[source]
Bind and enable the Vertex Buffer Object at the given attribute location.
-
set(data, usage=35044)[source]
-
class PyOpenGLng.HighLevelApi.Buffer.GlBuffer(data=None)[source]
Bases: object
This class wraps an OpenGL Buffer.
Public attributes:
-
_logger = <logging.Logger object at 0x5328290>
-
_set(data, usage)[source]
Set the data of the buffer.
-
_target = None
Define the target in subclass
-
bind()[source]
Bind the buffer.
-
bind_buffer_base(binding_point)[source]
Binds the buffer object buffer to the given binding point.
-
set(data, usage)[source]
Set the data of the buffer.
-
unbind()[source]
Unind the buffer.
-
class PyOpenGLng.HighLevelApi.Buffer.GlUniformBuffer(data=None)[source]
Bases: PyOpenGLng.HighLevelApi.Buffer.GlBuffer
This class wraps an OpenGl Uniform Buffer.
-
_logger = <logging.Logger object at 0x5328290>
-
_target = 35345
-
set(data, usage=35048)[source]