Advertisement
toxictype

Untitled

Mar 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include "pch.h"
  2. #include "Chungus.h"
  3. #include "Viewport.h"
  4. #include "Model_OBJ.h"
  5. #include <iostream>
  6. Chungus::Chungus(int value)
  7. {
  8. Model = new Model_OBJ();
  9. Model->Load("models/chungus.obj");
  10.  
  11. }
  12.  
  13.  
  14. void Chungus::Draw(Viewport vp, SDL_Renderer* ren)
  15. {
  16. glLoadIdentity();
  17. glPushMatrix();
  18. glRotatef(90, 0, 1, 0);
  19. Model->Draw();
  20. glPopMatrix();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement