예제 #1
0
파일: main.cpp 프로젝트: gortega56/Rig3D
 Rig3DSampleScene() :
     mMouseX(0.0f),
     mMouseY(0.0f),
     mAllocator(2048),
     mRenderer(nullptr),
     mCubeMesh(nullptr),
     mQuadMesh(nullptr),
     mRenderContext(nullptr),
     mBlurShaderResource(nullptr),
     mSphereShaderResource(nullptr),
     mVertexShader(nullptr),
     mPixelShader(nullptr),
     mSCPixelShader(nullptr),
     mQuadVertexShader(nullptr),
     mQuadBlurPixelShader(nullptr),
     mMotionBlurPixelShader(nullptr),
     mSphereColliders(nullptr)
 {
     mOptions.mWindowCaption	= "Rig3D Sample";
     mOptions.mWindowWidth	= 800;
     mOptions.mWindowHeight	= 600;
     mOptions.mGraphicsAPI   = GRAPHICS_API_DIRECTX11;
     mOptions.mFullScreen	= false;
     mBlurType				= BLUR_TYPE_NONE;
     mClearColor				= { 0.2f, 0.2f, 0.2f, 1.0f };
     mMeshLibrary.SetAllocator(&mAllocator);
 }
예제 #2
0
	Rig3DSampleScene() : mAllocator(1024)
	{
		mOptions.mWindowCaption = "SIMD Bezier";
		mOptions.mWindowWidth = 800;
		mOptions.mWindowHeight = 600;
		mOptions.mGraphicsAPI = GRAPHICS_API_DIRECTX11;
		mOptions.mFullScreen = false;
		mMeshLibrary.SetAllocator(&mAllocator);
		size_t a = alignof(Bezier);
	}
예제 #3
0
파일: main.cpp 프로젝트: gortega56/Rig3D
	Rig3DSampleScene() : 
		mAllocator(1024), 
		mCubeMesh(nullptr),
		mRenderer(nullptr),
		mVertexShader(nullptr), 
		mPixelShader(nullptr),
		mShaderResource(nullptr)
	{
		mOptions.mWindowCaption = "Key Frame Sample";
		mOptions.mWindowWidth = 800;
		mOptions.mWindowHeight = 600;
		mOptions.mGraphicsAPI = GRAPHICS_API_DIRECTX11;
		mOptions.mFullScreen = false;
		mAnimationTime = 0.0f;
		mIsPlaying = false;
		mMeshLibrary.SetAllocator(&mAllocator);
		mInterpolationMode = INTERPOLATION_MODE_LINEAR;
	}