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

Public Member Functions

 Texture ()
 
 Texture (IntPtr obj)
 
 Texture (string path, Guid guid, int type, bool srgb, bool genmipmap, TEXTUREUSAGE usage, bool compress, PREMULTIPLIEDTYPE premultiplied)
 
Texture makeNewReference ()
 
void Dispose ()
 
void managedResourceAttach ()
 
void managedResourceDetach ()
 
bool isEqual (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 setPremultiplied (PREMULTIPLIEDTYPE premultiplied)
 
bool isReloadRequired ()
 
void renamePath (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, 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, UInt32[] list, TEXTUREFFORMAT format, int sx, int sy, int swidth, int level)
 
unsafe void storeSubPixel2D (int x, int y, int w, int h, byte *list, TEXTUREFFORMAT format, int level)
 
void getColor (out UInt32[] list, int level)
 
string getFileName ()
 
string getFilePath ()
 
Guid getGuid ()
 
void setGuid (Guid id)
 
bool isSrgb ()
 
void setSrgb (bool b)
 
void setGenMipmap (bool flg)
 
void addRef ()
 
void removeRef ()
 
void reloadIfLoaded ()
 
int getRef ()
 
TEXTUREFFORMAT getTextureFormat ()
 

Static Public Member Functions

static void getColor (string name, out UInt32[] list, ref int width, ref int height)
 
static Texture load (string path, bool srgb, TEXTURESHAPE shape, TEXTUREUSAGE usage)
 
static Texture load (System.IO.Stream stream, bool srgb, bool genmipmap, TEXTURESHAPE shape, TEXTUREUSAGE usage)
 
static string[] getLoadableFileList (string path)
 
static int getMaxTexture2DSize ()
 
static void pushFindTextureBaseDirectory (string path)
 
static void popFindTextureBaseDirectory ()
 
static int getTextureStoreJobSerial ()
 
static bool textureStoreJobFinished (int serial)
 
static void textureStoreJobDispatchAll ()
 
static void textureStoreJobWaitQueuedJobFinished ()
 
static void forceReloadFileTextures ()
 

Public Attributes

IntPtr _native = IntPtr.Zero
 
string loadpath
 

Constructor & Destructor Documentation

◆ Texture() [1/3]

SharpKmyGfx.Texture.Texture ( )

◆ Texture() [2/3]

SharpKmyGfx.Texture.Texture ( IntPtr  obj)

◆ Texture() [3/3]

SharpKmyGfx.Texture.Texture ( string  path,
Guid  guid,
int  type,
bool  srgb,
bool  genmipmap,
TEXTUREUSAGE  usage,
bool  compress,
PREMULTIPLIEDTYPE  premultiplied 
)

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 ( )

◆ Dispose()

void SharpKmyGfx.Texture.Dispose ( )

◆ enableWrite()

void SharpKmyGfx.Texture.enableWrite ( )

◆ forceReloadFileTextures()

static void SharpKmyGfx.Texture.forceReloadFileTextures ( )
static

◆ getColor() [1/2]

void SharpKmyGfx.Texture.getColor ( out UInt32[]  list,
int  level 
)

◆ getColor() [2/2]

static void SharpKmyGfx.Texture.getColor ( string  name,
out UInt32[]  list,
ref int  width,
ref int  height 
)
static

◆ getFileName()

string SharpKmyGfx.Texture.getFileName ( )

◆ getFilePath()

string SharpKmyGfx.Texture.getFilePath ( )

◆ getGuid()

Guid SharpKmyGfx.Texture.getGuid ( )

◆ getHeight()

int SharpKmyGfx.Texture.getHeight ( )

◆ getLoadableFileList()

static string[] SharpKmyGfx.Texture.getLoadableFileList ( 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 ( )

◆ getTextureFormat()

TEXTUREFFORMAT SharpKmyGfx.Texture.getTextureFormat ( )

◆ getTextureStoreJobSerial()

static int SharpKmyGfx.Texture.getTextureStoreJobSerial ( )
static

◆ getWidth()

int SharpKmyGfx.Texture.getWidth ( )

◆ isEqual()

bool SharpKmyGfx.Texture.isEqual ( Texture  t)

◆ isReloadRequired()

bool SharpKmyGfx.Texture.isReloadRequired ( )

◆ isSrgb()

bool SharpKmyGfx.Texture.isSrgb ( )

◆ load() [1/2]

static Texture SharpKmyGfx.Texture.load ( string  path,
bool  srgb,
TEXTURESHAPE  shape,
TEXTUREUSAGE  usage 
)
static

◆ load() [2/2]

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

◆ makeNewReference()

Texture SharpKmyGfx.Texture.makeNewReference ( )

◆ managedResourceAttach()

void SharpKmyGfx.Texture.managedResourceAttach ( )

◆ managedResourceDetach()

void SharpKmyGfx.Texture.managedResourceDetach ( )

◆ popFindTextureBaseDirectory()

static void SharpKmyGfx.Texture.popFindTextureBaseDirectory ( )
static

◆ pushFindTextureBaseDirectory()

static 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 ( 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 ( Guid  id)

◆ setMagFilter()

void SharpKmyGfx.Texture.setMagFilter ( TEXTUREFILTER  f)

◆ setMinFilter()

void SharpKmyGfx.Texture.setMinFilter ( TEXTUREFILTER  f)

◆ setPremultiplied()

void SharpKmyGfx.Texture.setPremultiplied ( PREMULTIPLIEDTYPE  premultiplied)

◆ 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]

unsafe void SharpKmyGfx.Texture.storeSubPixel2D ( int  x,
int  y,
int  w,
int  h,
byte *  list,
TEXTUREFFORMAT  format,
int  level 
)

◆ storeSubPixel2D() [2/2]

void SharpKmyGfx.Texture.storeSubPixel2D ( int  x,
int  y,
int  w,
int  h,
UInt32[]  list,
TEXTUREFFORMAT  format,
int  sx,
int  sy,
int  swidth,
int  level 
)

◆ storeSubPixel2DDelay()

void SharpKmyGfx.Texture.storeSubPixel2DDelay ( int  x,
int  y,
int  w,
int  h,
UInt32[]  list,
TEXTUREFFORMAT  format,
int  sx,
int  sy,
int  swidth,
int  level 
)

◆ textureStoreJobDispatchAll()

static void SharpKmyGfx.Texture.textureStoreJobDispatchAll ( )
static

◆ textureStoreJobFinished()

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

◆ textureStoreJobWaitQueuedJobFinished()

static void SharpKmyGfx.Texture.textureStoreJobWaitQueuedJobFinished ( )
static

Member Data Documentation

◆ _native

IntPtr SharpKmyGfx.Texture._native = IntPtr.Zero

◆ loadpath

string SharpKmyGfx.Texture.loadpath