本文整理汇总了C#中DemoGame类的典型用法代码示例。如果您正苦于以下问题:C# DemoGame类的具体用法?C# DemoGame怎么用?C# DemoGame使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DemoGame类属于命名空间,在下文中一共展示了DemoGame类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Draw
/// 描画処理
public bool Draw( DemoGame.GraphicsDevice graphDev )
{
if( plDrawFlg ){
actorCh.Draw( graphDev );
}
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:8,代码来源:CtrlPlayer.cs
示例2: Init
/// public メソッド
///---------------------------------------------------------------------------
/// シーンの初期化
public bool Init( DemoGame.SceneManager sceneMgr )
{
taskId = 0;
useSceneMgr = sceneMgr;
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:10,代码来源:SceneDataLoad.cs
示例3: Check
/// チェック
public bool Check( GameActorCollManager collMgr, DemoGame.GeometryLine moveMoveLine )
{
collMgr.StartCollision();
for( int i=0; i<collMgr.TrgContainer.Num; i++ ){
GameObjProduct trgObj = collMgr.TrgContainer.GetEntryObj( i );
for( int x=0; x<trgObj.GetCollisionShapeMax(moveType); x++ ){
GameShapeProduct trgShape = trgObj.GetCollisionShape( moveType, x );
/// 衝突
if( calCollPointMove.Check( moveMoveLine, trgShape ) ){
collMgr.SetCollParam( i, x, calCollPointMove.BestId, calCollPointMove.BestDis );
}
}
}
/// 衝突座標をセット
setScrapedMovePos( collMgr, moveMoveLine );
/// 衝突した
return collMgr.CheckCollHit();
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:26,代码来源:ActorUnitCollLook.cs
示例4: DoDraw2
/// 描画処理
public override bool DoDraw2( DemoGame.GraphicsDevice graphDev ,Vector3 BasePos )
{
CalcSpriteMatrix(graphDev.GetCurrentCamera().Pos ,BasePos);
ctrlResMgr.SetSpriteData(BasePos,rotation,uvPos,uvSize,texSize);
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:8,代码来源:ObjChMonument.cs
示例5: DoDraw
/// 描画処理
public override bool DoDraw( DemoGame.GraphicsDevice graphDev )
{
if( drawFlg ){
useMdlHdl.RenderNoAnim( graphDev, baseMtx );
}
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:8,代码来源:ObjFixNormal.cs
示例6: DoDraw2
/// 描画処理
public override bool DoDraw2( DemoGame.GraphicsDevice graphDev ,Vector3 BasePos )
{
// useMdlHdl.Render( graphDev, baseMtx * Matrix4.Scale(new Vector3(0.15f, 0.15f, 0.15f)) );
// Matrix4 mtx = GetBoneMatrix( 2 );
// Common.VectorUtil.Set( ref BodyPos, mtx.M41, mtx.M42, mtx.M43 );
// boundingShape.SetMult( mtx );
var currentMatrix = CalcSpriteMatrix(graphDev.GetCurrentCamera().Pos ,BasePos);
var worldViewProj = graphDev.GetCurrentCamera().Projection * graphDev.GetCurrentCamera().View * currentMatrix;
spriteShader.SetUniformValue(0, ref worldViewProj);
graphDev.Graphics.SetShaderProgram(spriteShader);
graphDev.Graphics.SetVertexBuffer(0, vertices);
graphDev.Graphics.SetTexture(0, StaticDataList.textureUnified);
// graphDev.Graphics.Enable(EnableMode.Blend);
// graphDev.Graphics.SetBlendFunc(BlendFuncMode.Add, BlendFuncFactor.SrcAlpha, BlendFuncFactor.OneMinusSrcAlpha);
graphDev.Graphics.Disable(EnableMode.DepthTest);
graphDev.Graphics.Enable(EnableMode.CullFace);
graphDev.Graphics.SetCullFace(CullFaceMode.Back, CullFaceDirection.Ccw);
graphDev.Graphics.DrawArrays(DrawMode.TriangleFan, 0, 4);
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:27,代码来源:ObjChHouse.cs
示例7: Main
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
using (DemoGame game = new DemoGame())
{
game.Run();
}
}
开发者ID:Fynjyfun,项目名称:GremDemo-game,代码行数:10,代码来源:Program.cs
示例8: DoDraw
/// 描画処理
public override bool DoDraw( DemoGame.GraphicsDevice graphDev )
{
useMdlHdl.Render( graphDev, baseMtx, Brightness);
useMdlSkyHdl.Render( graphDev, baseMtx, Brightness );
/// shapeColl[(int)ShapeTypeId.MoveGround2].Draw( graphDev, 0, new Rgba(0xff,0x00,0xff,0x80), new Rgba(0xff,0x00,0xff,0x80) );
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:9,代码来源:ObjStage.cs
示例9: Draw
// Functions
public void Draw(DemoGame.GraphicsDevice graphDev)
{
#if RESIZE_VERTEX_BUFFER
ResizeBuffer() ;
#endif // RESIZE_VERTEX_BUFFER
UpdateVertexData() ;
UpdateIndexData() ;
DrawSprites(graphDev) ;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:11,代码来源:CtrlBatch.cs
示例10: Draw
/// 描画処理
public bool Draw( DemoGame.GraphicsDevice graphDev )
{
for( int i=0; i<actorChList.Count; i++ ){
actorChList[i].Draw( graphDev);
}
Clear();
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:10,代码来源:CtrlDestinationMark.cs
示例11: DrawDebug
/// 描画処理(デバック用)
public bool DrawDebug( DemoGame.GraphicsDevice graphDev )
{
for( int i=0; i<actorChList.Count; i++ ){
actorChList[i].Frame();
actorChList[i].Draw( graphDev );
}
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:10,代码来源:CtrlMonument.cs
示例12: DrawAlpha
public bool DrawAlpha( DemoGame.GraphicsDevice graphDev )
{
Matrix4 mtx = BaseMtx;
mtx.M41 = GetBodyPos().X;
mtx.M43 = GetBodyPos().Z;
mtx.M42 += 0.01f;
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:9,代码来源:ActorChEnemyMonument.cs
示例13: Draw
/// 描画処理
public bool Draw( DemoGame.GraphicsDevice graphDev )
{
for( int i=0; i<actorEffList.Count; i++ ){
if( actorEffList[i].Enable == true ){
GameCtrlDrawManager.GetInstance().EntryEffect( actorEffList[i], true );
}
}
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:10,代码来源:CtrlEffect.cs
示例14: DrawAlpha
public bool DrawAlpha(DemoGame.GraphicsDevice graphDev)
{
for( int i=0; i<activeList.Count; i++ ){
if(activeList[i].ActiveFlg == true ){
activeList[i].DrawAlpha(graphDev);
}
}
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:9,代码来源:CtrlMonument.cs
示例15: DrawAlpha
/// 描画処理
public bool DrawAlpha( DemoGame.GraphicsDevice graphDev )
{
for( int i=0; i<activeList.Count; i++ ){
Matrix4 mtx = activeList[i].BaseMtx;
mtx.M41 = activeList[i].GetBodyPos().X;
mtx.M43 = activeList[i].GetBodyPos().Z;
}
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:11,代码来源:CtrlSunMoon.cs
示例16: Draw
/// 描画
public override bool Draw( DemoGame.GraphicsDevice graphDev )
{
if( objMark.TypeId == 0 ){
SetBillboardMatrix( graphDev.GetCurrentCamera() );
}
else{
SetBillboardMatrixY( graphDev.GetCurrentCamera() );
}
objMark.Draw( graphDev );
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:12,代码来源:ActorDestinationMark.cs
示例17: DoDraw
/// 描画処理
public override bool DoDraw( DemoGame.GraphicsDevice graphDev )
{
if( objTrg != null ){
BaseMtx = objTrg.Mtx;
Common.VectorUtil.Set( ref BasePos, objTrg.Mtx );
objEff.SetMatrix( objTrg.Mtx );
objEff.Draw( graphDev );
}
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:12,代码来源:ActorEffAttach.cs
示例18: Check
/// public メソッド
///---------------------------------------------------------------------------
/// カプセルと三角形との衝突
public bool Check( DemoGame.GeometryCapsule moveCap, ShapeTriangles trgShape )
{
Vector3 collPos = StaticDataList.getVectorZero();
calMovePos = moveCap.EndPos;
calBestDis = -1.0f;
calBestId = -1;
float checDis = moveCap.Line.Length + moveCap.R + collCheckDis;
if( AppDebug.CollLightFlg == false ){
for( int i=0; i<trgShape.EntryNum; i++ ){
float a = (calMovePos.Dot( trgShape.Triangle[i].Plane.Nor ) + trgShape.Triangle[i].Plane.D);
if( a >= checDis || a <= -checDis ){
continue;
}
if( DemoGame.CommonCollision.CheckSphereAndTriangle( moveCap, trgShape.Triangle[i], ref collPos ) == true ){
float dis = Common.VectorUtil.Distance( collPos, moveCap.StartPos );
if( dis < calBestDis || calBestId < 0 ){
calMovePos = collPos;
calBestDis = dis;
calBestId = i;
}
}
AppDebug.CollCnt ++;
}
}
else{
for( int i=0; i<trgShape.EntryNum; i++ ){
float a = (calMovePos.Dot( trgShape.Triangle[i].Plane.Nor ) + trgShape.Triangle[i].Plane.D);
if( a >= checDis || a <= -checDis ){
continue;
}
if( DemoGame.CommonCollision.CheckLineAndTriangle( moveCap.Line, trgShape.Triangle[i], ref collPos ) == true ){
float dis = Common.VectorUtil.Distance( collPos, moveCap.StartPos );
if( dis < calBestDis || calBestId < 0 ){
calMovePos = collPos;
calBestDis = dis;
calBestId = i;
}
}
AppDebug.CollCnt ++;
}
}
if( calBestId >= 0 ){
return true;
}
return false;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:56,代码来源:CollisionSphereMove.cs
示例19: DoDraw
/// 描画処理
public override bool DoDraw( DemoGame.GraphicsDevice graphDev )
{
if( billFlg == true ){
SetBillboardMatrix( graphDev.GetCurrentCamera() );
}
else if( billYFlg == true ){
SetBillboardMatrixY( graphDev.GetCurrentCamera() );
}
objEff.Draw( graphDev );
return true;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:13,代码来源:ActorEffNormal.cs
示例20: Draw
/// デバック用
///---------------------------------------------------------------------------
/// デバック用:描画
public void Draw( DemoGame.GraphicsDevice graphDev, Rgba color )
{
DemoGame.RenderGeometry drawTri = new DemoGame.RenderGeometry();
drawTri.MakeTriangle();
DemoGame.Camera camera = graphDev.GetCurrentCamera();
for( int i=0; i<EntryNum; i++ ){
drawTri.DrawTriangle( graphDev.Graphics, Triangle[i], camera, color );
}
drawTri = null;
}
开发者ID:hatano0x06,项目名称:Coroppoxus,代码行数:16,代码来源:ShapeFrustum.cs
注:本文中的DemoGame类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论