Logo
Static Public Member Functions | Static Public Attributes | Properties | List of all members
Yukar.Engine.Graphics Class Reference

A class that manages the loading and drawing of models and textures More...

Static Public Member Functions

static void setMaximumResolution ()
 
static GraphicsCore Initialize (string fontName="", bool inIsInitializeForce=false, bool useGdi=false)
 
static void AddResourceDir (string prefix)
 
static void SetCommonResourceDir (string prefix)
 
static void AddTextureDir (string path)
 
static void searchTexturePath (string prefix)
 
static void ClearResourceServer ()
 
static void replaceSpriteBatch (SharpKmyGfx.SpriteBatch sp)
 
static void revertSpriteBatch ()
 
static SharpKmyGfx.SpriteBatch getSpriteBatch ()
 
static void flushSpriteBatch (SharpKmyGfx.Render scene)
 
static void clearError ()
 Clear the getGfxFileError that has occurred so far (so that the previous read does not affect More...
 
static void errorCheck (string module, System.Windows.Forms.IWin32Window owner)
 
static void setScreenSize (int screenWidth, int screenHeight)
 
static void Destroy ()
 
static void BeginDraw ()
 
static void EndDraw ()
 
static void SetViewport (int x, int y, int width, int height)
 
static void LoadImage (Common.Resource.Texture tex)
 
static Common.Resource.Texture LoadImageDiv (string path, int hdiv, int vdiv)
 
static Common.Resource.Texture LoadImageDivSize (string path, int hsz, int vsz)
 
static Common.Resource.Texture LoadImage (MemoryStream ms)
 
static Common.Resource.Texture LoadImageWin (string path, int left, int right, int top, int bottom)
 
static Common.Resource.Texture LoadImage (string path)
 
static Common.Resource.Texture LoadImageByPath (string path)
 
static Stream getFileStream (string fileName)
 
static SharpKmyGfx.ModelInstance LoadModelByPath (string path)
 
static void UnloadModelLoadedByPath (SharpKmyGfx.ModelInstance m)
 
static SharpKmyGfx.ParticleInstance LoadParticle (string path, uint displayID)
 
static void UnloadParticle (SharpKmyGfx.ParticleInstance inst)
 
static Color[] getTextureColorBuffer (int idx)
 
static void setTextureColorBuffer (int idx, Color[] buffer)
 
static void LoadImageDiv (Common.Resource.Texture rt, int divX, int divY)
 
static Common.Resource.Texture LoadImage (Stream stream, int gridX=0, int gridY=0, bool genmipmap=true)
 
static void UnloadImage (Common.Resource.Texture tex)
 
static void DrawImage (Common.Resource.Texture t, int x, int y, int w, int h, int zOrder=1, SharpKmyGfx.Shader shd=null)
 
static void DrawImage (SharpKmyGfx.Texture t, int x, int y, int w, int h, int zOrder=1)
 
static void DrawImage (SharpKmyGfx.Texture t, int x, int y, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture tex, int x, int y, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, int x, int y, Rectangle sourceRectangle, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, Rectangle destinationRectangle, Rectangle sourceRectangle, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, int x, int y, Color color, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, int x, int y, Rectangle sourceRectangle, Color color, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, Rectangle destinationRectangle, Rectangle sourceRectangle, Color color, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, Rectangle destinationRectangle, Rectangle sourceRectangle, Color color, float angle, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, Rectangle destinationRectangle, Rectangle sourceRectangle, bool useClip, Color color, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, Rectangle destinationRectangle, Rectangle sourceRectangle, int angle, Color color, int zOrder=1)
 
static void DrawImage (Common.Resource.Texture imageId, Rectangle destinationRectangle, Rectangle sourceRectangle, bool useClip, int angle, Color color, int zOrder=1)
 
static void DrawChipImage (Common.Resource.Texture imageId, int x, int y, int srcChipX, int srcChipY, int zOrder=1)
 
static void DrawChipImageSpecifiedSize (Common.Resource.Texture imageId, int x, int y, int srcChipX, int srcChipY, int drawChipW, int drawChipH, byte r, byte g, byte b, byte a, int zOrder=1)
 
static void DrawChipImageSpecifiedSize (Common.Resource.Texture imageId, int x, int y, int srcChipX, int srcChipY, int drawChipW, int drawChipH, byte r, byte g, byte b, byte a, bool useClip, int zOrder=1)
 
static void DrawChipImageSpecifiedSize (Common.Resource.Texture imageId, int x, int y, int srcChipX, int srcChipY, int drawChipW, int drawChipH, float rot, byte r, byte g, byte b, byte a, bool useClip, int zOrder=1)
 
static void DrawChipImageSpecifiedSize (Common.Resource.Texture imageId, int x, int y, int srcChipX, int srcChipY, int drawChipW, int drawChipH, byte r, byte g, byte b, byte a, float scale, int zOrder=1)
 
static void DrawChipImageSpecifiedSize (Common.Resource.Texture imageId, int x, int y, int srcChipX, int srcChipY, int drawChipW, int drawChipH, int zOrder=1)
 
static void DrawChipImage (Common.Resource.Texture imageId, int x, int y, int srcChipX, int srcChipY, byte r, byte g, byte b, byte a, int zOrder=1)
 
static void DrawChipImage (Common.Resource.Texture imageId, int x, int y, int destSizeX, int destSizeY, int srcChipX, int srcChipY, byte r, byte g, byte b, byte a, bool useClip=false, int zOrder=1)
 
static void DrawChipImageFor2DEffect (Common.Resource.Texture imageId, int x, int y, int destSizeX, int destSizeY, int srcChipX, int srcChipY, byte r, byte g, byte b, byte a, float angle, int zOrder=1)
 
static void DrawChipImage (Common.Resource.Texture imageId, int x, int y, int destSizeX, int destSizeY, int srcChipX, int srcChipY, byte r, byte g, byte b, byte a, float angle, int zOrder, int srcChipSizeW, int srcChipSizeH)
 
static void DrawStringSoloColor (int fontId, string text, Vector2 position, Color color, int zOrder=0)
 
static void DrawStringSoloColor (int fontId, string text, Vector2 position, Color color, float scale, int zOrder=0)
 
static void DrawStringSoloColor (int fontId, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder=0)
 
static void DrawStringSoloColor (int fontId, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder=0, bool bold=false, bool italic=false)
 
static void DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, int zOrder=0)
 
static void DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, float scale, int zOrder=0)
 
static void DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, float scale, int zOrder, bool bold, bool italic)
 
static void DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder=0)
 
static void DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder, bool bold, bool italic)
 
static void DrawString (int fontId, string text, Vector2 position, Color color, int zOrder=0)
 
static void DrawString (int fontId, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder=0)
 
static void DrawString (int fontId, string text, Vector2 position, Color color, Rectangle _, float scale, int zOrder=0)
 Deprecated/Rectangle arguments have no effect More...
 
static void DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Color color, int zOrder=0)
 
static void DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder=0)
 
static void setMatrix (Matrix projection, Matrix view, int zOrder=0)
 
static void DrawLine (int ax, int ay, int bx, int by, byte r, byte g, byte b, byte a)
 
static void DrawLineRect (int x, int y, int w, int h, byte r, byte g, byte b, byte a, int zOrder=1)
 
static void DrawLineRect (int x, int y, int offsetX, int offsetY, int w, int h, float rot, byte r, byte g, byte b, byte a, int zOrder=1)
 
static void DrawTexturedRect (Vector3 center, Vector2 halfsize, int axis, Color color)
 
static Vector2 MeasureString (int fontId, string text)
 
static Vector2 MeasureString (SharpKmyGfx.Font font, string text)
 
static int GetImageWidth (Common.Resource.Texture rt)
 
static int GetImageHeight (Common.Resource.Texture rt)
 
static void DrawRect (int x, int y, int w, int h, byte r, byte g, byte b, byte a, int zOrder=1)
 
static void DrawFillRect (int x, int y, int w, int h, byte r, byte g, byte b, byte a, bool useClip=false, int zOrder=1)
 
static void DrawFillRect (int x, int y, int w, int h, float rot, byte r, byte g, byte b, byte a, int zOrder=1)
 
static int GetDivWidth (Common.Resource.Texture id)
 
static int GetDivHeight (Common.Resource.Texture id)
 
static void SetGraphics (GraphicsCore core)
 
static bool IsInitialized ()
 
static void refreshFont ()
 
static Common.Resource.Texture GetIconImgId (Yukar.Common.Resource.Texture inIcon)
 
static Common.Resource.Texture GetIconImgId (Guid inId)
 

Static Public Attributes

const int DEFAULT_SCREEN_WIDTH = 960
 
const int DEFAULT_SCREEN_HEIGHT = 544
 
static GraphicsCore sInstance
 
static SharpKmyBase.StdResourceServer commonSvr
 
static bool sDisableGfxFileErrorMsgBox = false
 
static List< string > sAddedTexturePath = new List<string>()
 
static SharpKmyGfx.Material lineBoxMaterial
 

Properties

static int ScreenWidth [get]
 
static int ScreenHeight [get]
 
static int ViewportWidth [get]
 
static int ViewportHeight [get]
 

Detailed Description

A class that manages the loading and drawing of models and textures

Member Function Documentation

◆ AddResourceDir()

static void Yukar.Engine.Graphics.AddResourceDir ( string  prefix)
static

◆ AddTextureDir()

static void Yukar.Engine.Graphics.AddTextureDir ( string  path)
static

◆ BeginDraw()

static void Yukar.Engine.Graphics.BeginDraw ( )
static

◆ clearError()

static void Yukar.Engine.Graphics.clearError ( )
static

Clear the getGfxFileError that has occurred so far (so that the previous read does not affect

◆ ClearResourceServer()

static void Yukar.Engine.Graphics.ClearResourceServer ( )
static

◆ Destroy()

static void Yukar.Engine.Graphics.Destroy ( )
static

◆ DrawChipImage() [1/4]

static void Yukar.Engine.Graphics.DrawChipImage ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  destSizeX,
int  destSizeY,
int  srcChipX,
int  srcChipY,
byte  r,
byte  g,
byte  b,
byte  a,
bool  useClip = false,
int  zOrder = 1 
)
static

◆ DrawChipImage() [2/4]

static void Yukar.Engine.Graphics.DrawChipImage ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  destSizeX,
int  destSizeY,
int  srcChipX,
int  srcChipY,
byte  r,
byte  g,
byte  b,
byte  a,
float  angle,
int  zOrder,
int  srcChipSizeW,
int  srcChipSizeH 
)
static

◆ DrawChipImage() [3/4]

static void Yukar.Engine.Graphics.DrawChipImage ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  srcChipX,
int  srcChipY,
byte  r,
byte  g,
byte  b,
byte  a,
int  zOrder = 1 
)
static

◆ DrawChipImage() [4/4]

static void Yukar.Engine.Graphics.DrawChipImage ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  srcChipX,
int  srcChipY,
int  zOrder = 1 
)
static

◆ DrawChipImageFor2DEffect()

static void Yukar.Engine.Graphics.DrawChipImageFor2DEffect ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  destSizeX,
int  destSizeY,
int  srcChipX,
int  srcChipY,
byte  r,
byte  g,
byte  b,
byte  a,
float  angle,
int  zOrder = 1 
)
static

◆ DrawChipImageSpecifiedSize() [1/5]

static void Yukar.Engine.Graphics.DrawChipImageSpecifiedSize ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  srcChipX,
int  srcChipY,
int  drawChipW,
int  drawChipH,
byte  r,
byte  g,
byte  b,
byte  a,
bool  useClip,
int  zOrder = 1 
)
static

◆ DrawChipImageSpecifiedSize() [2/5]

static void Yukar.Engine.Graphics.DrawChipImageSpecifiedSize ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  srcChipX,
int  srcChipY,
int  drawChipW,
int  drawChipH,
byte  r,
byte  g,
byte  b,
byte  a,
float  scale,
int  zOrder = 1 
)
static

◆ DrawChipImageSpecifiedSize() [3/5]

static void Yukar.Engine.Graphics.DrawChipImageSpecifiedSize ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  srcChipX,
int  srcChipY,
int  drawChipW,
int  drawChipH,
byte  r,
byte  g,
byte  b,
byte  a,
int  zOrder = 1 
)
static

◆ DrawChipImageSpecifiedSize() [4/5]

static void Yukar.Engine.Graphics.DrawChipImageSpecifiedSize ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  srcChipX,
int  srcChipY,
int  drawChipW,
int  drawChipH,
float  rot,
byte  r,
byte  g,
byte  b,
byte  a,
bool  useClip,
int  zOrder = 1 
)
static

◆ DrawChipImageSpecifiedSize() [5/5]

static void Yukar.Engine.Graphics.DrawChipImageSpecifiedSize ( Common.Resource.Texture  imageId,
int  x,
int  y,
int  srcChipX,
int  srcChipY,
int  drawChipW,
int  drawChipH,
int  zOrder = 1 
)
static

◆ DrawFillRect() [1/2]

static void Yukar.Engine.Graphics.DrawFillRect ( int  x,
int  y,
int  w,
int  h,
byte  r,
byte  g,
byte  b,
byte  a,
bool  useClip = false,
int  zOrder = 1 
)
static

◆ DrawFillRect() [2/2]

static void Yukar.Engine.Graphics.DrawFillRect ( int  x,
int  y,
int  w,
int  h,
float  rot,
byte  r,
byte  g,
byte  b,
byte  a,
int  zOrder = 1 
)
static

◆ DrawImage() [1/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
int  x,
int  y,
Color  color,
int  zOrder = 1 
)
static

◆ DrawImage() [2/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
int  x,
int  y,
Rectangle  sourceRectangle,
Color  color,
int  zOrder = 1 
)
static

◆ DrawImage() [3/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
int  x,
int  y,
Rectangle  sourceRectangle,
int  zOrder = 1 
)
static

◆ DrawImage() [4/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
Rectangle  destinationRectangle,
Rectangle  sourceRectangle,
bool  useClip,
Color  color,
int  zOrder = 1 
)
static

◆ DrawImage() [5/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
Rectangle  destinationRectangle,
Rectangle  sourceRectangle,
bool  useClip,
int  angle,
Color  color,
int  zOrder = 1 
)
static

◆ DrawImage() [6/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
Rectangle  destinationRectangle,
Rectangle  sourceRectangle,
Color  color,
float  angle,
int  zOrder = 1 
)
static

◆ DrawImage() [7/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
Rectangle  destinationRectangle,
Rectangle  sourceRectangle,
Color  color,
int  zOrder = 1 
)
static

◆ DrawImage() [8/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
Rectangle  destinationRectangle,
Rectangle  sourceRectangle,
int  angle,
Color  color,
int  zOrder = 1 
)
static

◆ DrawImage() [9/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  imageId,
Rectangle  destinationRectangle,
Rectangle  sourceRectangle,
int  zOrder = 1 
)
static

◆ DrawImage() [10/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  t,
int  x,
int  y,
int  w,
int  h,
int  zOrder = 1,
SharpKmyGfx.Shader  shd = null 
)
static

◆ DrawImage() [11/13]

static void Yukar.Engine.Graphics.DrawImage ( Common.Resource.Texture  tex,
int  x,
int  y,
int  zOrder = 1 
)
static

◆ DrawImage() [12/13]

static void Yukar.Engine.Graphics.DrawImage ( SharpKmyGfx.Texture  t,
int  x,
int  y,
int  w,
int  h,
int  zOrder = 1 
)
static

◆ DrawImage() [13/13]

static void Yukar.Engine.Graphics.DrawImage ( SharpKmyGfx.Texture  t,
int  x,
int  y,
int  zOrder = 1 
)
static

◆ DrawLine()

static void Yukar.Engine.Graphics.DrawLine ( int  ax,
int  ay,
int  bx,
int  by,
byte  r,
byte  g,
byte  b,
byte  a 
)
static

◆ DrawLineRect() [1/2]

static void Yukar.Engine.Graphics.DrawLineRect ( int  x,
int  y,
int  offsetX,
int  offsetY,
int  w,
int  h,
float  rot,
byte  r,
byte  g,
byte  b,
byte  a,
int  zOrder = 1 
)
static

◆ DrawLineRect() [2/2]

static void Yukar.Engine.Graphics.DrawLineRect ( int  x,
int  y,
int  w,
int  h,
byte  r,
byte  g,
byte  b,
byte  a,
int  zOrder = 1 
)
static

◆ DrawRect()

static void Yukar.Engine.Graphics.DrawRect ( int  x,
int  y,
int  w,
int  h,
byte  r,
byte  g,
byte  b,
byte  a,
int  zOrder = 1 
)
static

◆ DrawString() [1/5]

static void Yukar.Engine.Graphics.DrawString ( int  fontId,
string  text,
Vector2  position,
Color  color,
bool  useClip,
float  scale,
int  zOrder = 0 
)
static

◆ DrawString() [2/5]

static void Yukar.Engine.Graphics.DrawString ( int  fontId,
string  text,
Vector2  position,
Color  color,
int  zOrder = 0 
)
static

◆ DrawString() [3/5]

static void Yukar.Engine.Graphics.DrawString ( int  fontId,
string  text,
Vector2  position,
Color  color,
Rectangle  _,
float  scale,
int  zOrder = 0 
)
static

Deprecated/Rectangle arguments have no effect

◆ DrawString() [4/5]

static void Yukar.Engine.Graphics.DrawString ( SharpKmyGfx.Font  font,
string  text,
Vector2  position,
Color  color,
bool  useClip,
float  scale,
int  zOrder = 0 
)
static

◆ DrawString() [5/5]

static void Yukar.Engine.Graphics.DrawString ( SharpKmyGfx.Font  font,
string  text,
Vector2  position,
Color  color,
int  zOrder = 0 
)
static

◆ DrawStringSoloColor() [1/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( int  fontId,
string  text,
Vector2  position,
Color  color,
bool  useClip,
float  scale,
int  zOrder = 0 
)
static

◆ DrawStringSoloColor() [2/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( int  fontId,
string  text,
Vector2  position,
Color  color,
bool  useClip,
float  scale,
int  zOrder = 0,
bool  bold = false,
bool  italic = false 
)
static

◆ DrawStringSoloColor() [3/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( int  fontId,
string  text,
Vector2  position,
Color  color,
float  scale,
int  zOrder = 0 
)
static

◆ DrawStringSoloColor() [4/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( int  fontId,
string  text,
Vector2  position,
Color  color,
int  zOrder = 0 
)
static

◆ DrawStringSoloColor() [5/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( SharpKmyGfx.Font  font,
string  text,
Vector2  position,
Color  color,
bool  useClip,
float  scale,
int  zOrder,
bool  bold,
bool  italic 
)
static

◆ DrawStringSoloColor() [6/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( SharpKmyGfx.Font  font,
string  text,
Vector2  position,
Color  color,
bool  useClip,
float  scale,
int  zOrder = 0 
)
static

◆ DrawStringSoloColor() [7/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( SharpKmyGfx.Font  font,
string  text,
Vector2  position,
Color  color,
float  scale,
int  zOrder,
bool  bold,
bool  italic 
)
static

◆ DrawStringSoloColor() [8/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( SharpKmyGfx.Font  font,
string  text,
Vector2  position,
Color  color,
float  scale,
int  zOrder = 0 
)
static

◆ DrawStringSoloColor() [9/9]

static void Yukar.Engine.Graphics.DrawStringSoloColor ( SharpKmyGfx.Font  font,
string  text,
Vector2  position,
Color  color,
int  zOrder = 0 
)
static

◆ DrawTexturedRect()

static void Yukar.Engine.Graphics.DrawTexturedRect ( Vector3  center,
Vector2  halfsize,
int  axis,
Color  color 
)
static

◆ EndDraw()

static void Yukar.Engine.Graphics.EndDraw ( )
static

◆ errorCheck()

static void Yukar.Engine.Graphics.errorCheck ( string  module,
System.Windows.Forms.IWin32Window  owner 
)
static

◆ flushSpriteBatch()

static void Yukar.Engine.Graphics.flushSpriteBatch ( SharpKmyGfx.Render  scene)
static

◆ GetDivHeight()

static int Yukar.Engine.Graphics.GetDivHeight ( Common.Resource.Texture  id)
static

◆ GetDivWidth()

static int Yukar.Engine.Graphics.GetDivWidth ( Common.Resource.Texture  id)
static

◆ getFileStream()

static Stream Yukar.Engine.Graphics.getFileStream ( string  fileName)
static

◆ GetIconImgId() [1/2]

static Common.Resource.Texture Yukar.Engine.Graphics.GetIconImgId ( Guid  inId)
static

◆ GetIconImgId() [2/2]

static Common.Resource.Texture Yukar.Engine.Graphics.GetIconImgId ( Yukar.Common.Resource.Texture  inIcon)
static

◆ GetImageHeight()

static int Yukar.Engine.Graphics.GetImageHeight ( Common.Resource.Texture  rt)
static

◆ GetImageWidth()

static int Yukar.Engine.Graphics.GetImageWidth ( Common.Resource.Texture  rt)
static

◆ getSpriteBatch()

static SharpKmyGfx.SpriteBatch Yukar.Engine.Graphics.getSpriteBatch ( )
static

◆ getTextureColorBuffer()

static Color[] Yukar.Engine.Graphics.getTextureColorBuffer ( int  idx)
static

◆ Initialize()

static GraphicsCore Yukar.Engine.Graphics.Initialize ( string  fontName = "",
bool  inIsInitializeForce = false,
bool  useGdi = false 
)
static

◆ IsInitialized()

static bool Yukar.Engine.Graphics.IsInitialized ( )
static

◆ LoadImage() [1/4]

static void Yukar.Engine.Graphics.LoadImage ( Common.Resource.Texture  tex)
static

◆ LoadImage() [2/4]

static Common.Resource.Texture Yukar.Engine.Graphics.LoadImage ( MemoryStream  ms)
static

◆ LoadImage() [3/4]

static Common.Resource.Texture Yukar.Engine.Graphics.LoadImage ( Stream  stream,
int  gridX = 0,
int  gridY = 0,
bool  genmipmap = true 
)
static

◆ LoadImage() [4/4]

static Common.Resource.Texture Yukar.Engine.Graphics.LoadImage ( string  path)
static

◆ LoadImageByPath()

static Common.Resource.Texture Yukar.Engine.Graphics.LoadImageByPath ( string  path)
static

◆ LoadImageDiv() [1/2]

static void Yukar.Engine.Graphics.LoadImageDiv ( Common.Resource.Texture  rt,
int  divX,
int  divY 
)
static

◆ LoadImageDiv() [2/2]

static Common.Resource.Texture Yukar.Engine.Graphics.LoadImageDiv ( string  path,
int  hdiv,
int  vdiv 
)
static

◆ LoadImageDivSize()

static Common.Resource.Texture Yukar.Engine.Graphics.LoadImageDivSize ( string  path,
int  hsz,
int  vsz 
)
static

◆ LoadImageWin()

static Common.Resource.Texture Yukar.Engine.Graphics.LoadImageWin ( string  path,
int  left,
int  right,
int  top,
int  bottom 
)
static

◆ LoadModelByPath()

static SharpKmyGfx.ModelInstance Yukar.Engine.Graphics.LoadModelByPath ( string  path)
static

◆ LoadParticle()

static SharpKmyGfx.ParticleInstance Yukar.Engine.Graphics.LoadParticle ( string  path,
uint  displayID 
)
static

◆ MeasureString() [1/2]

static Vector2 Yukar.Engine.Graphics.MeasureString ( int  fontId,
string  text 
)
static

◆ MeasureString() [2/2]

static Vector2 Yukar.Engine.Graphics.MeasureString ( SharpKmyGfx.Font  font,
string  text 
)
static

◆ refreshFont()

static void Yukar.Engine.Graphics.refreshFont ( )
static

◆ replaceSpriteBatch()

static void Yukar.Engine.Graphics.replaceSpriteBatch ( SharpKmyGfx.SpriteBatch  sp)
static

◆ revertSpriteBatch()

static void Yukar.Engine.Graphics.revertSpriteBatch ( )
static

◆ searchTexturePath()

static void Yukar.Engine.Graphics.searchTexturePath ( string  prefix)
static

◆ SetCommonResourceDir()

static void Yukar.Engine.Graphics.SetCommonResourceDir ( string  prefix)
static

◆ SetGraphics()

static void Yukar.Engine.Graphics.SetGraphics ( GraphicsCore  core)
static

◆ setMatrix()

static void Yukar.Engine.Graphics.setMatrix ( Matrix  projection,
Matrix  view,
int  zOrder = 0 
)
static

◆ setMaximumResolution()

static void Yukar.Engine.Graphics.setMaximumResolution ( )
static

◆ setScreenSize()

static void Yukar.Engine.Graphics.setScreenSize ( int  screenWidth,
int  screenHeight 
)
static

◆ setTextureColorBuffer()

static void Yukar.Engine.Graphics.setTextureColorBuffer ( int  idx,
Color[]  buffer 
)
static

◆ SetViewport()

static void Yukar.Engine.Graphics.SetViewport ( int  x,
int  y,
int  width,
int  height 
)
static

◆ UnloadImage()

static void Yukar.Engine.Graphics.UnloadImage ( Common.Resource.Texture  tex)
static

◆ UnloadModelLoadedByPath()

static void Yukar.Engine.Graphics.UnloadModelLoadedByPath ( SharpKmyGfx.ModelInstance  m)
static

◆ UnloadParticle()

static void Yukar.Engine.Graphics.UnloadParticle ( SharpKmyGfx.ParticleInstance  inst)
static

Member Data Documentation

◆ commonSvr

SharpKmyBase.StdResourceServer Yukar.Engine.Graphics.commonSvr
static

◆ DEFAULT_SCREEN_HEIGHT

const int Yukar.Engine.Graphics.DEFAULT_SCREEN_HEIGHT = 544
static

◆ DEFAULT_SCREEN_WIDTH

const int Yukar.Engine.Graphics.DEFAULT_SCREEN_WIDTH = 960
static

◆ lineBoxMaterial

SharpKmyGfx.Material Yukar.Engine.Graphics.lineBoxMaterial
static

◆ sAddedTexturePath

List<string> Yukar.Engine.Graphics.sAddedTexturePath = new List<string>()
static

◆ sDisableGfxFileErrorMsgBox

bool Yukar.Engine.Graphics.sDisableGfxFileErrorMsgBox = false
static

◆ sInstance

GraphicsCore Yukar.Engine.Graphics.sInstance
static

Property Documentation

◆ ScreenHeight

int Yukar.Engine.Graphics.ScreenHeight
staticget

◆ ScreenWidth

int Yukar.Engine.Graphics.ScreenWidth
staticget

◆ ViewportHeight

int Yukar.Engine.Graphics.ViewportHeight
staticget

◆ ViewportWidth

int Yukar.Engine.Graphics.ViewportWidth
staticget