A class that manages texture resources More...
Public Member Functions | |
Texture () | |
override void | onCatalogCleanup () |
override void | postImport (string srcpath) |
void | attachTexture (SharpKmyGfx.Texture texture) |
void | initializeTexture () |
override void | initializeKmyGfx () |
override void | load (BinaryReader reader) |
override void | save (BinaryWriter writer) |
override void | CheckRecourceConsistency (Catalog inCatalog) |
void | applyToEntity () |
void | invalidateReferencedMaterialThumbnail () |
override void | ChangeReImportPath () |
override void | reImport () |
override void | reload () |
SharpKmyGfx.Texture | getTexture () |
int | GetDivWidth () |
int | GetDivHeight () |
override bool | initializingAfterLoading () |
override void | setNativeResourcePath (string inFolderPath) |
set full path of native resource for system project y More... | |
Public Member Functions inherited from Yukar.Common.Resource.ResourceItem | |
override bool | initializingAfterLoading () |
virtual void | initializeKmyGfx () |
override void | save (System.IO.BinaryWriter writer) |
override void | load (System.IO.BinaryReader reader) |
virtual void | setPath (string path) |
virtual void | CopySourceResourceFile (string inSrcPath, string inDstPath=null, bool inIsOverwrite=false, bool inIsExistFileRename=false) |
void | CopyOutsideResourceFile (bool inIsOverwrite=false, bool inIsExistFileRename=false) |
bool | deleteResourceFile (Dictionary< string, int > inUsedFilePathCountDic, bool inIsAutoDeleteFile) |
virtual List< string > | getRelatedFiles () |
virtual ErrorType | verify () |
bool | IsError (bool inCheckDispOnly=true) |
bool | isSystemResource () |
bool | isDLCResource () |
void | setToModified () |
virtual string[] | getPathList () |
string | getExtension () |
virtual void | ChangeReImportPath () |
virtual List< Guid > | GetUsedResourceIdList () |
override void | ChangeId (Dictionary< Guid, Rom.RomItem > inChangeIdDic) |
void | ClearResourceHolderCache () |
virtual void | reload () |
bool | isExistNewerTimeStamp () |
virtual void | renamePath (string inNewPath) |
virtual void | setNativeResourcePath (string inFolderPath) |
set full path of native resource for system project y More... | |
Public Member Functions inherited from Yukar.Common.Rom.RomItem | |
string | getCategory (string locale=null) |
RomItem () | |
System.Drawing.Bitmap | getThumbnail (THUMBNAILMAKERNOTIFY notify, out bool setNotify) |
System.Drawing.Bitmap | getThumbnail (THUMBNAILMAKERNOTIFY notify) |
System.Drawing.Bitmap | getThumbnail () |
void | invalidateThumbnail () |
void | invalidateThumbnail (THUMBNAILMAKERNOTIFY notify) |
void | forceInvalidateThumbnail (THUMBNAILMAKERNOTIFY notify) |
virtual void | save (BinaryWriter writer) |
virtual void | load (BinaryReader reader) |
virtual void | saveUsedGUID (BinaryWriter writer, bool inIncludeChildUseRomGUID) |
Export the GUID you are using (for tools) More... | |
void | saveUsedGUID (BinaryWriter writer) |
Export the GUID you are using (for tools) More... | |
virtual bool | initializingAfterLoading () |
virtual void | postImport (string srcpath) |
virtual void | reImport () |
virtual void | export (string path) |
virtual void | onCatalogCleanup () |
void | copyFrom (Common.Rom.RomItem src) |
virtual void | CheckRecourceConsistency (Catalog inCatalog) |
virtual void | ChangeId (Dictionary< Guid, Rom.RomItem > inChangeIdDic) |
Replace the Id you are using with the corresponding Rom Id More... | |
void | ClearId (List< Rom.RomItem > inClearRomItemList) |
Removed rom usage in list More... | |
void | Dispose () |
void | AddUpdatecall (int count) |
void | save (BinaryWriter writer) |
void | load (BinaryReader reader) |
Static Public Member Functions | |
static string | makeCreatePath (string srcpath, bool overwrite=false) |
static Texture | import (string srcpath, Shape inShape) |
static Texture | import (string srcpath, string dstpath, Shape inShape=Shape._2D) |
static Texture | createTextureResource (string path, Catalog catalog, bool srgb, bool addToCatalog, Shape shape, Usage usage, Slice slice, out bool isNew) |
static System.Guid | GetCommonTextureGuid (CommonTexture commonTexture) |
static System.Guid[] | GetCommonTextureGuidList () |
static CommonTexture | GetCommonTextureFromGuid (System.Guid guid) |
static bool | isCommonTextureGuid (System.Guid guid) |
static System.Drawing.Bitmap | GetCommonTextureBitmapFromGuid (System.Guid guid) |
static Texture | getDefaultCommonTexture (CommonTexture commonTexture) |
static Texture | createErrorTexture (bool inSRGB) |
static void | convertModelTexture (Catalog catalog, string basename, SharpKmyGfx.ModelData mdl, List< Texture > list, List< Material > mlist, MaterialSet mset) |
static void | setReflectionMap (SharpKmyGfx.GameView gameview, string name) |
Static Public Member Functions inherited from Yukar.Common.Resource.ResourceItem | |
static string | makeCreateFilePath (Type inType, string inSrcPath, bool inIsOverWrite) |
Creating a file path to copy resource files to More... | |
Static Public Member Functions inherited from Yukar.Common.Rom.RomItem | |
static void | writeChunk (System.IO.BinaryWriter writer, IChunk rom) |
static void | readChunk (System.IO.BinaryReader reader, IChunk rom) |
static void | skipChunk (System.IO.BinaryReader reader) |
static T | Clone< T > (RomItem inSrc) |
static bool | equalChunk (IChunk a, IChunk b) |
static IChunk | duplicate (IChunk rom) |
Public Attributes | |
string | importPath = "" |
Shape | shape = Shape._2D |
Usage | usage = Usage.Default |
Slice | slice = Slice.NoSlice |
bool | m_compress = false |
bool | m_srgb = false |
Wrap | wrapU = Wrap.Repeat |
Wrap | wrapV = Wrap.Repeat |
Wrap | wrapW = Wrap.Repeat |
Filter | magFilter = Filter.Bilinear |
Filter | minFilter = Filter.Bilinear |
FillType | fillType = FillType.FILL_REPEAT |
int | top = 0 |
int | bottom = 0 |
int | left = 0 |
int | right = 0 |
int | hsliceParam = 1 |
int | vsliceParam = 1 |
bool | keepAspectForWindow = false |
int | sliderMargin = 0 |
SpriteOrigin | origin = SpriteOrigin.LEFT_TOP |
bool | attachFromCatalog |
Public Attributes inherited from Yukar.Common.Resource.ResourceItem | |
Guid | dlcGuid = Guid.Empty |
string | relatedPath = "" |
string | path = ".\\" |
Option | option = new Option() |
ResourceSource | source = ResourceSource.RES_USER |
Public Attributes inherited from Yukar.Common.Rom.RomItem | |
Guid | guId |
String | name |
string | tags = "" |
string | category = "" |
Static Public Attributes | |
static System.Guid | UnknownId = new System.Guid("B669D5FA-B579-4D4D-BC5B-9A4E11BA7CA5") |
Static Public Attributes inherited from Yukar.Common.Resource.ResourceItem | |
static ResourceSource | sCurrentSourceMode |
static bool | sReferenceLoad = false |
static bool | sClipboardLoad = false |
const string | TAG_3D = "#3D" |
const string | TAG_2D = "#2D" |
static Guid | sCurrentSourceGuid |
Static Public Attributes inherited from Yukar.Common.Rom.RomItem | |
static int | thumbnailWidth = 128 |
static int | thumbnailHeight = 128 |
const char | CATEGORY_SPLITTER = '\\' |
static CREATETHUMBNAIL | createThumbnailFunction = null |
const int | UnknownRefCount = -2000 |
Protected Member Functions | |
override bool | IsErrorImp (bool inCheckDispOnly) |
override void | afterRenamePath (string inNewPath) |
Protected Member Functions inherited from Yukar.Common.Resource.ResourceItem | |
virtual bool | IsErrorImp (bool inCheckDispOnly) |
string | checkReImportPath (string importPath, string filter, bool changeReImportPath) |
virtual List< ResourceHolder > | GetResourceHolderList () |
void | updateSetuppedThumbnail () |
virtual void | afterRenamePath (string inNewPath) |
Protected Member Functions inherited from Yukar.Common.Rom.RomItem | |
virtual void | Dispose (bool disposing) |
Properties | |
override string | ImportPath [get, set] |
bool | m_genmipmap [get] |
int | ShapeType [get, set] |
int | ChannelType [get, set] |
int | SliceType [get, set] |
bool | Srgb [get, set] |
int | WrapU [get, set] |
int | WrapV [get, set] |
int | WrapW [get, set] |
int | MagFilter [get, set] |
int | MinFilter [get, set] |
int | WindowFillType [get, set] |
int | Top [get, set] |
int | Bottom [get, set] |
int | Left [get, set] |
int | Right [get, set] |
int | HsliceParam [get, set] |
int | VsliceParam [get, set] |
int | Origin [get, set] |
bool | Compress [get, set] |
bool | ShrinkEdge [get, set] |
bool | KeepAspect [get, set] |
int | SliderMargin [get, set] |
bool | IsShrinkEdge [get] |
override string | SourceFileName [get] |
override int | RefCount [get] |
override bool | UseRefCount [get] |
int | Width [get, set] |
int | Height [get, set] |
int | NumBits [get, set] |
string | ImageType [get] |
Properties inherited from Yukar.Common.Resource.ResourceItem | |
string | SourcePath [get] |
virtual string | ImportPath [get, set] |
virtual string | SourceFileName [get] |
string | SourceFolderName [get] |
int | StampType [get, set] |
bool | ForceExport [get, set] |
string | resourcePath [get, set] |
Properties inherited from Yukar.Common.Rom.RomItem | |
System.Drawing.Bitmap | Thumbnail [get] |
ThumbnailStatusType | ThumbnailStatus = ThumbnailStatusType.Empty [get, set] |
string | Name [get, set] |
virtual int | RefCount [get] |
virtual bool | UseRefCount [get] |
Folder | Parent [get, set] |
A class that manages texture resources
enum Yukar.Common.Resource.Texture.CommonTexture |
enum Yukar.Common.Resource.Texture.SpriteOrigin |
Yukar.Common.Resource.Texture.Texture | ( | ) |
|
protectedvirtual |
Reimplemented from Yukar.Common.Resource.ResourceItem.
void Yukar.Common.Resource.Texture.applyToEntity | ( | ) |
void Yukar.Common.Resource.Texture.attachTexture | ( | SharpKmyGfx.Texture | texture | ) |
|
virtual |
Reimplemented from Yukar.Common.Resource.ResourceItem.
|
virtual |
Reimplemented from Yukar.Common.Rom.RomItem.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int Yukar.Common.Resource.Texture.GetDivHeight | ( | ) |
int Yukar.Common.Resource.Texture.GetDivWidth | ( | ) |
SharpKmyGfx.Texture Yukar.Common.Resource.Texture.getTexture | ( | ) |
|
static |
|
virtual |
Reimplemented from Yukar.Common.Resource.ResourceItem.
void Yukar.Common.Resource.Texture.initializeTexture | ( | ) |
|
virtual |
Reimplemented from Yukar.Common.Resource.ResourceItem.
void Yukar.Common.Resource.Texture.invalidateReferencedMaterialThumbnail | ( | ) |
|
static |
|
protectedvirtual |
Reimplemented from Yukar.Common.Resource.ResourceItem.
|
virtual |
Reimplemented from Yukar.Common.Rom.RomItem.
|
static |
|
virtual |
Reimplemented from Yukar.Common.Rom.RomItem.
|
virtual |
Reimplemented from Yukar.Common.Rom.RomItem.
|
virtual |
Reimplemented from Yukar.Common.Rom.RomItem.
|
virtual |
Reimplemented from Yukar.Common.Resource.ResourceItem.
|
virtual |
Reimplemented from Yukar.Common.Rom.RomItem.
|
virtual |
set full path of native resource for system project y
inFolderPath | Current folder path of the project |
Reimplemented from Yukar.Common.Resource.ResourceItem.
|
static |
bool Yukar.Common.Resource.Texture.attachFromCatalog |
int Yukar.Common.Resource.Texture.bottom = 0 |
FillType Yukar.Common.Resource.Texture.fillType = FillType.FILL_REPEAT |
int Yukar.Common.Resource.Texture.hsliceParam = 1 |
string Yukar.Common.Resource.Texture.importPath = "" |
bool Yukar.Common.Resource.Texture.keepAspectForWindow = false |
int Yukar.Common.Resource.Texture.left = 0 |
bool Yukar.Common.Resource.Texture.m_compress = false |
bool Yukar.Common.Resource.Texture.m_srgb = false |
Filter Yukar.Common.Resource.Texture.magFilter = Filter.Bilinear |
Filter Yukar.Common.Resource.Texture.minFilter = Filter.Bilinear |
SpriteOrigin Yukar.Common.Resource.Texture.origin = SpriteOrigin.LEFT_TOP |
int Yukar.Common.Resource.Texture.right = 0 |
Shape Yukar.Common.Resource.Texture.shape = Shape._2D |
Slice Yukar.Common.Resource.Texture.slice = Slice.NoSlice |
int Yukar.Common.Resource.Texture.sliderMargin = 0 |
int Yukar.Common.Resource.Texture.top = 0 |
|
static |
Usage Yukar.Common.Resource.Texture.usage = Usage.Default |
int Yukar.Common.Resource.Texture.vsliceParam = 1 |
Wrap Yukar.Common.Resource.Texture.wrapU = Wrap.Repeat |
Wrap Yukar.Common.Resource.Texture.wrapV = Wrap.Repeat |
Wrap Yukar.Common.Resource.Texture.wrapW = Wrap.Repeat |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
getset |
|
get |
|
getset |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
getset |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |