Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include "Chungus.h"
- #include "Viewport.h"
- #include "Model_OBJ.h"
- #include <iostream>
- Chungus::Chungus(int value)
- {
- Model = new Model_OBJ();
- Model->Load("models/chungus.obj");
- }
- void Chungus::Draw(Viewport vp, SDL_Renderer* ren)
- {
- glLoadIdentity();
- glPushMatrix();
- glRotatef(90, 0, 1, 0);
- Model->Draw();
- glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement