Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyGfx::Texture Class Reference

#include <Texture.h>

Public Member Functions

 Texture ()
 
 Texture (System::String^ path, System::Guid guid, int type)
 
 Texture (kmyGfx::Texture *t)
 
void Release ()
 
void Delete ()
 
int getWidth ()
 
int getHeight ()
 
int getStoredWidth ()
 
int getStoredHeight ()
 
void setMagFilter (TEXTUREFILTER f)
 
void setMinFilter (TEXTUREFILTER f)
 
void setWrap (WRAPTYPE f)
 
void setUWrap (WRAPTYPE f)
 
void setVWrap (WRAPTYPE f)
 
void setWWrap (WRAPTYPE f)
 
void setAnisotropy (float v)
 
void setType (int type)
 
void setUsage (TEXTUREUSAGE usage)
 
void setCompress (bool flg)
 
void renamePath (System::String^ path)
 
void create (int width, int height, bool srgb, int miplevel)
 
void create (int width, int height, TEXTUREFFORMAT format, int miplevel)
 
void enableWrite ()
 
void apply ()
 
void storeSubPixel2DDelay (int x, int y, int w, int h, array< UINT32 >^ list, TEXTUREFFORMAT format, int sx, int sy, int swidth, int level)
 
void copyTexture2DDelay (int dx, int dy, int dw, int dh, int dlevel, int sx, int sy, int slevel, Texture^ src)
 
void storeSubPixel2D (int x, int y, int w, int h, array< UINT32 >^ list, TEXTUREFFORMAT format, int sx, int sy, int swidth, int level)
 
void storeSubPixel2D (int x, int y, int w, int h, u8 *list, TEXTUREFFORMAT format, int level)
 
void getColor ([System::Runtime::InteropServices::Out] array< UINT32 >^% list, int level)
 
System::String getFileName ()
 
System::String getFilePath ()
 
System::Guid getGuid ()
 
void setGuid (System::Guid id)
 
bool isSrgb ()
 
void setSrgb (bool b)
 
void setGenMipmap (bool flg)
 
void addRef ()
 
void removeRef ()
 
void reloadIfLoaded ()
 
int getRef ()
 
void saveNativeTexture (System::String^ path)
 
void setNativeTexturePath (System::String^ path)
 

Static Public Member Functions

static void getColor (System::String^ name, [System::Runtime::InteropServices::Out] array< UINT32 >^% list, int% width, int% height)
 
static Texture load (System::String^ path, bool srgb, TEXTURESHAPE shape, TEXTUREUSAGE usage)
 
static Texture load (System::IO::Stream^ stream, bool srgb, bool genmipmap, TEXTURESHAPE shape, TEXTUREUSAGE usage)
 
static array< System::String^> getLoadableFileList (System::String^ path)
 
static int getMaxTexture2DSize ()
 
static void pushFindTextureBaseDirectory (String^ path)
 
static void popFindTextureBaseDirectory ()
 
static int getTextureStoreJobSerial ()
 
static bool textureStoreJobFinished (int serial)
 
static void textureStoreJobDispatchAll ()
 

Public Attributes

kmyGfx::Texture * obj
 
bool ownImage
 
System::String loadpath
 

Constructor & Destructor Documentation

◆ Texture() [1/3]

SharpKmyGfx::Texture::Texture ( )

◆ Texture() [2/3]

SharpKmyGfx::Texture::Texture ( System::String^  path,
System::Guid  guid,
int  type 
)

◆ Texture() [3/3]

SharpKmyGfx::Texture::Texture ( kmyGfx::Texture *  t)

Member Function Documentation

◆ addRef()

void SharpKmyGfx::Texture::addRef ( )

◆ apply()

void SharpKmyGfx::Texture::apply ( )

◆ copyTexture2DDelay()

void SharpKmyGfx::Texture::copyTexture2DDelay ( int  dx,
int  dy,
int  dw,
int  dh,
int  dlevel,
int  sx,
int  sy,
int  slevel,
Texture src 
)

◆ create() [1/2]

void SharpKmyGfx::Texture::create ( int  width,
int  height,
bool  srgb,
int  miplevel 
)

◆ create() [2/2]

void SharpKmyGfx::Texture::create ( int  width,
int  height,
TEXTUREFFORMAT  format,
int  miplevel 
)

◆ Delete()

void SharpKmyGfx::Texture::Delete ( )

◆ enableWrite()

void SharpKmyGfx::Texture::enableWrite ( )

◆ getColor() [1/2]

void SharpKmyGfx::Texture::getColor ( [System::Runtime::InteropServices::Out] array< UINT32 >^%  list,
int  level 
)

◆ getColor() [2/2]

static void SharpKmyGfx::Texture::getColor ( System::String^  name,
[System::Runtime::InteropServices::Out] array< UINT32 >^%  list,
int%  width,
int%  height 
)
static

◆ getFileName()

System::String SharpKmyGfx::Texture::getFileName ( )

◆ getFilePath()

System::String SharpKmyGfx::Texture::getFilePath ( )

◆ getGuid()

System::Guid SharpKmyGfx::Texture::getGuid ( )

◆ getHeight()

int SharpKmyGfx::Texture::getHeight ( )

◆ getLoadableFileList()

array< System::String^> SharpKmyGfx::Texture::getLoadableFileList ( System::String^  path)
static

◆ getMaxTexture2DSize()

static int SharpKmyGfx::Texture::getMaxTexture2DSize ( )
static

◆ getRef()

int SharpKmyGfx::Texture::getRef ( )

◆ getStoredHeight()

int SharpKmyGfx::Texture::getStoredHeight ( )

◆ getStoredWidth()

int SharpKmyGfx::Texture::getStoredWidth ( )

◆ getTextureStoreJobSerial()

int SharpKmyGfx::Texture::getTextureStoreJobSerial ( )
static

◆ getWidth()

int SharpKmyGfx::Texture::getWidth ( )

◆ isSrgb()

bool SharpKmyGfx::Texture::isSrgb ( )

◆ load() [1/2]

static Texture SharpKmyGfx::Texture::load ( System::IO::Stream^  stream,
bool  srgb,
bool  genmipmap,
TEXTURESHAPE  shape,
TEXTUREUSAGE  usage 
)
static

◆ load() [2/2]

static Texture SharpKmyGfx::Texture::load ( System::String^  path,
bool  srgb,
TEXTURESHAPE  shape,
TEXTUREUSAGE  usage 
)
static

◆ popFindTextureBaseDirectory()

void SharpKmyGfx::Texture::popFindTextureBaseDirectory ( )
static

◆ pushFindTextureBaseDirectory()

void SharpKmyGfx::Texture::pushFindTextureBaseDirectory ( String^  path)
static

◆ Release()

void SharpKmyGfx::Texture::Release ( )

◆ reloadIfLoaded()

void SharpKmyGfx::Texture::reloadIfLoaded ( )

◆ removeRef()

void SharpKmyGfx::Texture::removeRef ( )

◆ renamePath()

void SharpKmyGfx::Texture::renamePath ( System::String^  path)

◆ saveNativeTexture()

void SharpKmyGfx::Texture::saveNativeTexture ( System::String^  path)

◆ setAnisotropy()

void SharpKmyGfx::Texture::setAnisotropy ( float  v)

◆ setCompress()

void SharpKmyGfx::Texture::setCompress ( bool  flg)

◆ setGenMipmap()

void SharpKmyGfx::Texture::setGenMipmap ( bool  flg)

◆ setGuid()

void SharpKmyGfx::Texture::setGuid ( System::Guid  id)

◆ setMagFilter()

void SharpKmyGfx::Texture::setMagFilter ( TEXTUREFILTER  f)

◆ setMinFilter()

void SharpKmyGfx::Texture::setMinFilter ( TEXTUREFILTER  f)

◆ setNativeTexturePath()

void SharpKmyGfx::Texture::setNativeTexturePath ( System::String^  path)

◆ setSrgb()

void SharpKmyGfx::Texture::setSrgb ( bool  b)

◆ setType()

void SharpKmyGfx::Texture::setType ( int  type)

◆ setUsage()

void SharpKmyGfx::Texture::setUsage ( TEXTUREUSAGE  usage)

◆ setUWrap()

void SharpKmyGfx::Texture::setUWrap ( WRAPTYPE  f)

◆ setVWrap()

void SharpKmyGfx::Texture::setVWrap ( WRAPTYPE  f)

◆ setWrap()

void SharpKmyGfx::Texture::setWrap ( WRAPTYPE  f)

◆ setWWrap()

void SharpKmyGfx::Texture::setWWrap ( WRAPTYPE  f)

◆ storeSubPixel2D() [1/2]

void SharpKmyGfx::Texture::storeSubPixel2D ( int  x,
int  y,
int  w,
int  h,
array< UINT32 >^  list,
TEXTUREFFORMAT  format,
int  sx,
int  sy,
int  swidth,
int  level 
)

◆ storeSubPixel2D() [2/2]

void SharpKmyGfx::Texture::storeSubPixel2D ( int  x,
int  y,
int  w,
int  h,
u8 *  list,
TEXTUREFFORMAT  format,
int  level 
)

◆ storeSubPixel2DDelay()

void SharpKmyGfx::Texture::storeSubPixel2DDelay ( int  x,
int  y,
int  w,
int  h,
array< UINT32 >^  list,
TEXTUREFFORMAT  format,
int  sx,
int  sy,
int  swidth,
int  level 
)

◆ textureStoreJobDispatchAll()

void SharpKmyGfx::Texture::textureStoreJobDispatchAll ( )
static

◆ textureStoreJobFinished()

bool SharpKmyGfx::Texture::textureStoreJobFinished ( int  serial)
static

Member Data Documentation

◆ loadpath

System::String SharpKmyGfx::Texture::loadpath

◆ obj

kmyGfx::Texture* SharpKmyGfx::Texture::obj

◆ ownImage

bool SharpKmyGfx::Texture::ownImage