C# Class andengine.entity.shape.RectangularShape

Inheritance: GLShape
显示文件 Open project: jamesburton/AndEngine.net Class Usage Examples

Protected Properties

Property Type Description
mBaseHeight float
mBaseWidth float
mHeight float
mWidth float

Public Methods

Method Description
CollidesWith ( IShape pOtherShape ) : bool
Contains ( float pX, float pY ) : bool
ConvertLocalToSceneCoordinates ( float pX, float pY ) : float[]
ConvertSceneToLocalCoordinates ( float pX, float pY ) : float[]
GetBaseHeight ( ) : float
GetBaseWidth ( ) : float
GetHeight ( ) : float
GetSceneCenterCoordinates ( ) : float[]
GetVertexBuffer ( ) : andengine.opengl.vertex.VertexBuffer
GetWidth ( ) : float
RectangularShape ( float pX, float pY, float pWidth, float pHeight, andengine.opengl.vertex.VertexBuffer pVertexBuffer )
Reset ( ) : void
SetBaseSize ( ) : void
SetHeight ( float pHeight ) : void
SetSize ( float pWidth, float pHeight ) : void
SetWidth ( float pWidth ) : void

Protected Methods

Method Description
DrawVertices ( Javax.Microedition.Khronos.Opengles.IGL10 pGL, andengine.engine.camera.Camera pCamera ) : void
IsCulled ( andengine.engine.camera.Camera pCamera ) : bool

Method Details

CollidesWith() public method

public CollidesWith ( IShape pOtherShape ) : bool
pOtherShape IShape
return bool

Contains() public method

public Contains ( float pX, float pY ) : bool
pX float
pY float
return bool

ConvertLocalToSceneCoordinates() public method

public ConvertLocalToSceneCoordinates ( float pX, float pY ) : float[]
pX float
pY float
return float[]

ConvertSceneToLocalCoordinates() public method

public ConvertSceneToLocalCoordinates ( float pX, float pY ) : float[]
pX float
pY float
return float[]

DrawVertices() protected method

protected DrawVertices ( Javax.Microedition.Khronos.Opengles.IGL10 pGL, andengine.engine.camera.Camera pCamera ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
pCamera andengine.engine.camera.Camera
return void

GetBaseHeight() public method

public GetBaseHeight ( ) : float
return float

GetBaseWidth() public method

public GetBaseWidth ( ) : float
return float

GetHeight() public method

public GetHeight ( ) : float
return float

GetSceneCenterCoordinates() public method

public GetSceneCenterCoordinates ( ) : float[]
return float[]

GetVertexBuffer() public method

public GetVertexBuffer ( ) : andengine.opengl.vertex.VertexBuffer
return andengine.opengl.vertex.VertexBuffer

GetWidth() public method

public GetWidth ( ) : float
return float

IsCulled() protected method

protected IsCulled ( andengine.engine.camera.Camera pCamera ) : bool
pCamera andengine.engine.camera.Camera
return bool

RectangularShape() public method

public RectangularShape ( float pX, float pY, float pWidth, float pHeight, andengine.opengl.vertex.VertexBuffer pVertexBuffer )
pX float
pY float
pWidth float
pHeight float
pVertexBuffer andengine.opengl.vertex.VertexBuffer

Reset() public method

public Reset ( ) : void
return void

SetBaseSize() public method

public SetBaseSize ( ) : void
return void

SetHeight() public method

public SetHeight ( float pHeight ) : void
pHeight float
return void

SetSize() public method

public SetSize ( float pWidth, float pHeight ) : void
pWidth float
pHeight float
return void

SetWidth() public method

public SetWidth ( float pWidth ) : void
pWidth float
return void

Property Details

mBaseHeight protected_oe property

protected float mBaseHeight
return float

mBaseWidth protected_oe property

protected float mBaseWidth
return float

mHeight protected_oe property

protected float mHeight
return float

mWidth protected_oe property

protected float mWidth
return float