Change window size to 1920x1080
This commit is contained in:
parent
203110adf5
commit
7543350dfd
@ -27,9 +27,17 @@
|
||||
#include "../ParticleSystem.h"
|
||||
#include "Camera.h"
|
||||
|
||||
#ifndef EX_9_1_HPP
|
||||
#define EX_9_1_HPP
|
||||
|
||||
extern int WIDTH;
|
||||
extern int HEIGHT;
|
||||
|
||||
#endif
|
||||
|
||||
const unsigned int SHADOW_WIDTH = 1024, SHADOW_HEIGHT = 1024;
|
||||
|
||||
int WIDTH = 500, HEIGHT = 500;
|
||||
//int WIDTH = 1920, HEIGHT = 1080;
|
||||
namespace models {
|
||||
Core::RenderContext marbleBustContext;
|
||||
Core::RenderContext spaceshipContext;
|
||||
|
@ -8,10 +8,11 @@
|
||||
|
||||
|
||||
#include "ex_9_1.hpp"
|
||||
|
||||
int WIDTH = 1920, HEIGHT = 1080;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
// inicjalizacja glfw
|
||||
glfwInit();
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
@ -23,7 +24,7 @@ int main(int argc, char** argv)
|
||||
#endif
|
||||
|
||||
// tworzenie okna za pomoca glfw
|
||||
GLFWwindow* window = glfwCreateWindow(500, 500, "FirstWindow", NULL, NULL);
|
||||
GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "FirstWindow", NULL, NULL);
|
||||
if (window == NULL)
|
||||
{
|
||||
std::cout << "Failed to create GLFW window" << std::endl;
|
||||
@ -34,7 +35,7 @@ int main(int argc, char** argv)
|
||||
|
||||
// ladowanie OpenGL za pomoca glew
|
||||
glewInit();
|
||||
glViewport(0, 0, 500, 500);
|
||||
glViewport(0, 0, WIDTH, HEIGHT);
|
||||
|
||||
init(window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user