OGLTexture (object)

OGLTexture OGLTexture OGLTexture OGLBaseObject OGLBaseObject OGLTexture->OGLBaseObject OGLImageObject OGLImageObject OGLTexture->OGLImageObject BaseVersioned BaseVersioned OGLBaseObject->BaseVersioned OGLObject OGLObject OGLBaseObject->OGLObject StatisticSourceWithAutoRegisterMember StatisticSourceWithAutoRegisterMember OGLBaseObject->StatisticSourceWithAutoRegisterMember Versioned Versioned BaseVersioned->Versioned

Members

Versions version  
String name  
UInt32 bufferID  
UInt32 unactiveBufferID  
Boolean externallyOwned  
OGLWrapperGlobals wrapperGlobals  
StatisticsAutoRegisterMember autoStats  
UInt32 glTextureType  
UInt32 glFormat  
UInt32 glInternalFormat  
UInt32 width  
UInt32 height  
UInt32 depth  
UInt32 samples  
Boolean hasMipMaps  
Boolean pendingTextureParameters  
Integer minFilter  
Integer magFilter  
Integer wrapS  
Integer wrapT  
Integer wrapR  
Boolean pendingShadowTextureParameters  
Boolean isShadow  

Methods

  OGLTexture ( in OGLTexture other )
  OGLTexture ()
  bind ! ( in UInt32 textureUnit )
OGLTexture clone ? ()
Boolean create ! ( io Ref<OGLContext> context )
UInt32 getInternalFormat ? ()
  getSize ? ( io Size width, io Size height, io Size depth, io Size samples )
UInt32 getTextureType ? ()
  getType ? ( io UInt32 componentType, io UInt32 redBits, io UInt32 greenBits, io UInt32 blueBits, io UInt32 alphaBits, io UInt32 depthBits, io UInt32 stencilBits )
Boolean hasSameType ? ( in OGLTexture other )
Boolean isShadow ? ()
  loadTexture ! ( in Size width, in Size height, in Integer pixelDataGLType, in Data pixelDatas<>, io Ref<OGLContext> context )
  loadTexture2D ! ( in Size width, in Size height, in Color pixelData<>, in Boolean asFloat16, in Boolean withAlpha, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture2D ! ( in Size width, in Size height, in Color pixelData<>, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture2D ! ( in Size width, in Size height, in Integer pixelDataGLType, in Data pixelData, io Ref<OGLContext> context )
  loadTexture2D ! ( in Size width, in Size height, in RGB pixelData<>, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture2D ! ( in Size width, in Size height, in RGBA pixelData<>, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture2D ! ( io Mat44 matrices[], io Ref<OGLContext> context )
  loadTexture2DColor ! ( in Size width, in Size height, in Data pixelData, in Boolean asFloat16, in Boolean withAlpha, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture2DColor ! ( in Size width, in Size height, in Data pixelData, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture2DRGB ! ( in Size width, in Size height, in Data pixelData, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture2DRGBA ! ( in Size width, in Size height, in Data pixelData, in Boolean generateMipmaps, io Ref<OGLContext> context )
  loadTexture3D ! ( in Size width, in Size height, in Size depth, in Integer pixelDataGLType, in Data pixelData, io Ref<OGLContext> context )
  setGenerateMipMaps ! ( in Boolean hasMipMaps )
  setSamples ! ( in Size samples )
  setShadowTextureParameters ! ()
  setSize ! ( in Size width, in Size height )
  setSize ! ( in UInt32 width, in UInt32 height, in UInt32 depth )
  setTextureParameters ! ( in Integer minFilter, in Integer magFilter, in Integer wrapS, in Integer wrapT )
  setTextureParameters ! ( in Integer minFilter, in Integer magFilter, in Integer wrapS, in Integer wrapT, in Integer wrapR )
  setType ! ( in UInt32 glTextureType, in UInt32 glFormat, in UInt32 glInternalFormat, in Boolean hasMipMaps )
  setType ! ( in UInt32 glTextureType, in UInt32 glFormat, in UInt32 glInternalFormat, in Boolean hasMipMaps, in UInt32 samples )
  updatePendingTextureParameters ! ()
  ~OGLTexture ()

Methods in detail

OGLTexture ( in OGLTexture other )

copy constructor


OGLTexture ()


OGLTexture.bind! ( in UInt32 textureUnit )


OGLTexture OGLTexture.clone? ()

clone method


Boolean OGLTexture.create! ( io Ref<OGLContext> context )

Returns true if it succeeded. Some Objects can only be created with specialized methods, in which case this will return false.


UInt32 OGLTexture.getInternalFormat? ()


OGLTexture.getSize? ( io Size width, io Size height, io Size depth, io Size samples )


UInt32 OGLTexture.getTextureType? ()


OGLTexture.getType? ( io UInt32 componentType, io UInt32 redBits, io UInt32 greenBits, io UInt32 blueBits, io UInt32 alphaBits, io UInt32 depthBits, io UInt32 stencilBits )


Boolean OGLTexture.hasSameType? ( in OGLTexture other )


Boolean OGLTexture.isShadow? ()


OGLTexture.loadTexture! ( in Size width, in Size height, in Integer pixelDataGLType, in Data pixelDatas<>, io Ref<OGLContext> context )


OGLTexture.loadTexture2D! ( in Size width, in Size height, in Color pixelData<>, in Boolean asFloat16, in Boolean withAlpha, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture2D! ( in Size width, in Size height, in Color pixelData<>, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture2D! ( in Size width, in Size height, in Integer pixelDataGLType, in Data pixelData, io Ref<OGLContext> context )


OGLTexture.loadTexture2D! ( in Size width, in Size height, in RGB pixelData<>, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture2D! ( in Size width, in Size height, in RGBA pixelData<>, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture2D! ( io Mat44 matrices[], io Ref<OGLContext> context )


OGLTexture.loadTexture2DColor! ( in Size width, in Size height, in Data pixelData, in Boolean asFloat16, in Boolean withAlpha, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture2DColor! ( in Size width, in Size height, in Data pixelData, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture2DRGB! ( in Size width, in Size height, in Data pixelData, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture2DRGBA! ( in Size width, in Size height, in Data pixelData, in Boolean generateMipmaps, io Ref<OGLContext> context )


OGLTexture.loadTexture3D! ( in Size width, in Size height, in Size depth, in Integer pixelDataGLType, in Data pixelData, io Ref<OGLContext> context )


OGLTexture.setGenerateMipMaps! ( in Boolean hasMipMaps )


OGLTexture.setSamples! ( in Size samples )


OGLTexture.setShadowTextureParameters! ()


OGLTexture.setSize! ( in Size width, in Size height )


OGLTexture.setSize! ( in UInt32 width, in UInt32 height, in UInt32 depth )


OGLTexture.setTextureParameters! ( in Integer minFilter, in Integer magFilter, in Integer wrapS, in Integer wrapT )


OGLTexture.setTextureParameters! ( in Integer minFilter, in Integer magFilter, in Integer wrapS, in Integer wrapT, in Integer wrapR )


OGLTexture.setType! ( in UInt32 glTextureType, in UInt32 glFormat, in UInt32 glInternalFormat, in Boolean hasMipMaps )


OGLTexture.setType! ( in UInt32 glTextureType, in UInt32 glFormat, in UInt32 glInternalFormat, in Boolean hasMipMaps, in UInt32 samples )


OGLTexture.updatePendingTextureParameters! ()


~ OGLTexture ()