Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Engine::Initialize(HINSTANCE hinstance, HWND hwnd)
- {
- m_graphics->Initialize();
- TextureShader* shader = new TextureShader(m_graphics->GetDevice(), hwnd, "texture",
- "TextureVertexShader", "TexturePixelShader");
- //initialize sprite object and size of sprite
- m_sprite = new AnimatedSprite(94.0f,24.0f);
- m_sprite->Initialize(m_graphics->GetDevice(),m_graphics->GetDeviceContext(), shader, "tomy.png");
- return true;
- }
- void Engine::Run()
- {
- Update();
- Render();
- }
- void Engine::Update()
- {
- m_sprite->Update();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement