Class RenderModelTextureMap

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class RenderModelTextureMap
    extends Struct
    implements NativeResource
    A texture map for use on a render model.

    Member documentation

    • unHeight – width and height of the texture map in pixels
    • rubTextureMapData – Map texture data. All textures are RGBA with 8 bits per channel per pixel. Data size is width * height * 4ub

    Layout

    
     struct RenderModel_TextureMap_t {
         uint16_t unWidth;
         uint16_t unHeight;
         uint8_t const * rubTextureMapData;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • UNWIDTH, UNHEIGHT, RUBTEXTUREMAPDATA

        The struct member offsets.
    • Constructor Detail

      • RenderModelTextureMap

        public RenderModelTextureMap​(java.nio.ByteBuffer container)
        Creates a RenderModelTextureMap instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.