Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. WinMain()
  2. {
  3. //Create sample
  4. return Win32Appliaction::Run(&sample);
  5. }
  6.  
  7. int Win32Application::Run(DXSample* pSample)
  8. {
  9. //Create Window
  10. pSample->Init();
  11. pSample->Render();
  12. CreateThread(NULL,0,pSample->Resize(),NULL,0,NULL);//error occurs
  13. pSample->Destroy();
  14. }
  15.  
  16. class DXSample
  17. {
  18. public:
  19. virtual void Init() =0; //and rest all functions
  20. };
  21.  
  22. class HelloTexture:public DXSample
  23. {
  24. public :
  25. virtual void Init();//all other functions similarly
  26. }
  27.  
  28. void Hellotexture::Init()
  29. { //code
  30. }
  31. void Hellotexture::Resize()
  32. {
  33. //code
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement