OpenGlBorrowedTextureDescriptor class final
A ring of your OpenGL textures, for
MapHandle.attachOpenGlBorrowedTexture().
logical_size sets the map's size. physical_width and physical_height
give the textures' size in pixels, which is usually logical_size times the
map's scale factor. The context must use OpenGlContextOwnership.shared.
Each texture must be in your context's share group, with storage of that
size. The ring holds up to textureRingMaxDepth distinct textures.
The session uses the textures until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.
See mln_open_gl_borrowed_texture_descriptor in the
C API reference.
Constructors
-
OpenGlBorrowedTextureDescriptor({required LogicalSize logicalSize, required int physicalWidth, required int physicalHeight, required OpenGlContextDescriptor context, required List<
OpenGlBorrowedTexture> textures, required int target})
Properties
- context → OpenGlContextDescriptor
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logicalSize → LogicalSize
-
final
- physicalHeight → int
-
final
- physicalWidth → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → int
-
The textures' target. It must be GL_TEXTURE_2D.
final
-
textures
→ List<
OpenGlBorrowedTexture> -
final
Methods
-
copyWith(
{LogicalSize? logicalSize, int? physicalWidth, int? physicalHeight, OpenGlContextDescriptor? context, List< OpenGlBorrowedTexture> ? textures, int? target}) → OpenGlBorrowedTextureDescriptor - A copy of this value with the given members replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited