bunch of test things
also new camera class
This commit is contained in:
parent
b47c5e27d8
commit
89e47fa56c
10 changed files with 496 additions and 54 deletions
|
|
@ -1,10 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <glad/glad.h>
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb_image/stb_image.h>
|
||||
#include <stb/stb_image.h>
|
||||
|
||||
class Texture
|
||||
{
|
||||
|
|
@ -48,7 +47,7 @@ public:
|
|||
|
||||
void Draw() const
|
||||
{
|
||||
glActiveTexture(GL_TEXTURE);
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
glBindTexture(GL_TEXTURE_2D, ID);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue