nowa mapka (mapk2.obj)
This commit is contained in:
@@ -30,8 +30,6 @@ void lazik::loadModel() {
|
||||
|
||||
void lazik::draw() {
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
|
||||
// 1st attribute buffer: vertices
|
||||
glEnableVertexAttribArray(0);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, this->vertexbuffer);
|
||||
|
||||
4
main.cpp
4
main.cpp
@@ -202,7 +202,7 @@ void SetDCPixelFormat(HDC hDC) {
|
||||
}
|
||||
|
||||
lazik user(10.0f, 0.0f, 0.0f, "res/models/lazik4.obj");
|
||||
plane mapa(0.0f, 0.0f, 0.0f, "res/models/mapka.obj");
|
||||
plane mapa(0.0f, 0.0f, 0.0f, "res/models/mapka2.obj");
|
||||
|
||||
void SetupRC() {
|
||||
// Light values and coordinates
|
||||
@@ -303,7 +303,7 @@ void RenderScene(void) {
|
||||
// prymitywny licznik FPS
|
||||
if (monitormode) {
|
||||
std::time_t now_t = std::time(nullptr);
|
||||
// yRot -= 1; // showcase demo
|
||||
yRot -= 1; // showcase demo
|
||||
if (now_t > monitormodehelper) {
|
||||
std::cout << (int)(monitormodecounter / (now_t - monitormodehelper)) << " fps\n";
|
||||
monitormodehelper = now_t;
|
||||
|
||||
@@ -30,8 +30,6 @@ void plane::loadModel() {
|
||||
|
||||
void plane::draw() {
|
||||
|
||||
glDisable(GL_CULL_FACE);
|
||||
|
||||
// 1st attribute buffer: vertices
|
||||
glEnableVertexAttribArray(0);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, this->vertexbuffer);
|
||||
|
||||
1101
res/models/mapka2.obj
Normal file
1101
res/models/mapka2.obj
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user