MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.MeshTexture:

Public Member Functions

 MeshTexture (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeshTexture ()
 MeshTexture (meshlib.MeshTexture _other)
meshlib.MeshTexture assignFromAnother (meshlib.MeshTexture _other)
long heapBytes ()
meshlib.Color sampleDiscrete (meshlib.Vector2f pos)
meshlib.Color sampleBilinear (meshlib.Vector2f pos)
meshlib.Color sample (meshlib.FilterType filter, meshlib.Vector2f pos)
meshlib.FilterType filter ()
void setFilter (meshlib.FilterType value)
meshlib.WrapType wrap ()
void setWrap (meshlib.WrapType value)
meshlib.std_vector_MR_Color pixels ()
void setPixels (meshlib.std_vector_MR_Color value)
meshlib.Vector2i resolution ()
void setResolution (meshlib.Vector2i value)
meshlib.Image upcastToImage ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static meshlib.MeshTexture staticDowncastFromImage (meshlib.Image object)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Generated from class MR::MeshTexture. Base classes: Direct: (non-virtual) MR::Image

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ MeshTexture() [1/3]

meshlib.MeshTexture.MeshTexture ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ MeshTexture() [2/3]

meshlib.MeshTexture.MeshTexture ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshTexture_DefaultConstruct().

◆ MeshTexture() [3/3]

meshlib.MeshTexture.MeshTexture ( meshlib.MeshTexture _other)

Generated from constructor MR::MeshTexture::MeshTexture. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_MeshTexture_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.MeshTexture meshlib.MeshTexture.assignFromAnother ( meshlib.MeshTexture _other)

Generated from method MR::MeshTexture::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_MeshTexture_AssignFromAnother().

◆ filter()

meshlib.FilterType meshlib.MeshTexture.filter ( )

Returns a pointer to a member variable of class MR::MeshTexture named filter. The reference to this object might be preserved as the return value.

Calls MR_MeshTexture_Get_filter().

◆ heapBytes()

long meshlib.MeshTexture.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::MeshTexture::heapBytes.

Calls MR_MeshTexture_heapBytes().

◆ pixels()

meshlib.std_vector_MR_Color meshlib.MeshTexture.pixels ( )

Returns a pointer to a member variable of class MR::MeshTexture named pixels. The reference to this object might be preserved as the return value.

Calls MR_MeshTexture_Get_pixels().

◆ resolution()

meshlib.Vector2i meshlib.MeshTexture.resolution ( )

Returns a pointer to a member variable of class MR::MeshTexture named resolution. The reference to this object might be preserved as the return value.

Calls MR_MeshTexture_Get_resolution().

◆ sample()

meshlib.Color meshlib.MeshTexture.sample ( meshlib.FilterType filter,
meshlib.Vector2f pos )

Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns sampled color at it according to given filter Generated from method MR::MeshTexture::sample.

Calls MR_MeshTexture_sample().

◆ sampleBilinear()

meshlib.Color meshlib.MeshTexture.sampleBilinear ( meshlib.Vector2f pos)

Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns bilinear interpolated color at it Generated from method MR::MeshTexture::sampleBilinear.

Calls MR_MeshTexture_sampleBilinear().

◆ sampleDiscrete()

meshlib.Color meshlib.MeshTexture.sampleDiscrete ( meshlib.Vector2f pos)

Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns the color of the closest pixel Generated from method MR::MeshTexture::sampleDiscrete.

Calls MR_MeshTexture_sampleDiscrete().

◆ setFilter()

void meshlib.MeshTexture.setFilter ( meshlib.FilterType value)

Modifies a member variable of class MR::MeshTexture named filter. The reference to the parameter value might be preserved in this object in element filter.

Calls MR_MeshTexture_Set_filter().

◆ setPixels()

void meshlib.MeshTexture.setPixels ( meshlib.std_vector_MR_Color value)

Modifies a member variable of class MR::MeshTexture named pixels. The reference to the parameter value might be preserved in this object in element pixels.

Calls MR_MeshTexture_Set_pixels().

◆ setResolution()

void meshlib.MeshTexture.setResolution ( meshlib.Vector2i value)

Modifies a member variable of class MR::MeshTexture named resolution. The reference to the parameter value might be preserved in this object in element resolution.

Calls MR_MeshTexture_Set_resolution().

◆ setWrap()

void meshlib.MeshTexture.setWrap ( meshlib.WrapType value)

Modifies a member variable of class MR::MeshTexture named wrap. The reference to the parameter value might be preserved in this object in element wrap.

Calls MR_MeshTexture_Set_wrap().

◆ staticDowncastFromImage()

meshlib.MeshTexture meshlib.MeshTexture.staticDowncastFromImage ( meshlib.Image object)
static

Static downcast from the base class MR::Image. Undefined behavior if the object isn't actually a MeshTexture. The result refers to object.

Calls MR_MeshTexture_MutableStaticDowncastFrom_MR_Image().

◆ upcastToImage()

meshlib.Image meshlib.MeshTexture.upcastToImage ( )

Upcasts to the base class MR::Image. The result refers to this object.

Calls MR_MeshTexture_MutableUpcastTo_MR_Image().

◆ wrap()

meshlib.WrapType meshlib.MeshTexture.wrap ( )

Returns a pointer to a member variable of class MR::MeshTexture named wrap. The reference to this object might be preserved as the return value.

Calls MR_MeshTexture_Get_wrap().


The documentation for this class was generated from the following file: