Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WinMain()
- {
- //Create sample
- return Win32Appliaction::Run(&sample);
- }
- int Win32Application::Run(DXSample* pSample)
- {
- //Create Window
- pSample->Init();
- pSample->Render();
- CreateThread(NULL,0,pSample->Resize(),NULL,0,NULL);//error occurs
- pSample->Destroy();
- }
- class DXSample
- {
- public:
- virtual void Init() =0; //and rest all functions
- };
- class HelloTexture:public DXSample
- {
- public :
- virtual void Init();//all other functions similarly
- }
- void Hellotexture::Init()
- { //code
- }
- void Hellotexture::Resize()
- {
- //code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement