C# 클래스 Nez.Graphics

wrapper class that holds in instance of a Batcher and helpers so that it can be passed around and draw anything.
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
batcher Batcher
bitmapFont BitmapFont
instance Graphics
pixelTexture Nez.Textures.Subtexture

공개 메소드들

메소드 설명
Graphics ( ) : System
Graphics ( BitmapFont font ) : System
createSingleColorTexture ( int width, int height, Color color ) : Microsoft.Xna.Framework.Graphics.Texture2D

helper method that generates a single color texture of the given dimensions

unload ( ) : void

메소드 상세

Graphics() 공개 메소드

public Graphics ( ) : System
리턴 System

Graphics() 공개 메소드

public Graphics ( BitmapFont font ) : System
font BitmapFont
리턴 System

createSingleColorTexture() 공개 정적인 메소드

helper method that generates a single color texture of the given dimensions
public static createSingleColorTexture ( int width, int height, Color color ) : Microsoft.Xna.Framework.Graphics.Texture2D
width int Width.
height int Height.
color Color Color.
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

unload() 공개 메소드

public unload ( ) : void
리턴 void

프로퍼티 상세

batcher 공개적으로 프로퍼티

All 2D rendering is done through this Batcher instance
public Batcher,Nez batcher
리턴 Batcher

bitmapFont 공개적으로 프로퍼티

default font is loaded up and stored here for easy access. Nez uses it for the DebugConsole
public BitmapFont bitmapFont
리턴 BitmapFont

instance 공개적으로 정적으로 프로퍼티

public static Graphics,Nez instance
리턴 Graphics

pixelTexture 공개적으로 프로퍼티

A subtexture used to draw rectangles, lines, circles, etc. Will be generated at startup, but you can replace this with a subtexture from your atlas to reduce texture swaps. Should be a 1x1 white pixel
public Subtexture,Nez.Textures pixelTexture
리턴 Nez.Textures.Subtexture