More Progress
This commit is contained in:
		
							
								
								
									
										10
									
								
								src/dawnopengl/display/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/dawnopengl/display/CMakeLists.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| # Copyright (c) 2022 Dominic Masters | ||||
| #  | ||||
| # This software is released under the MIT License. | ||||
| # https://opensource.org/licenses/MIT | ||||
|  | ||||
| # Sources | ||||
| target_sources(${DAWN_TARGET_NAME} | ||||
|   PRIVATE | ||||
|     RenderManager.cpp | ||||
| ) | ||||
							
								
								
									
										34
									
								
								src/dawnopengl/display/RenderManager.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								src/dawnopengl/display/RenderManager.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| // Copyright (c) 2022 Dominic Masters | ||||
| //  | ||||
| // This software is released under the MIT License. | ||||
| // https://opensource.org/licenses/MIT | ||||
|  | ||||
| #include "dawnopengl.hpp" | ||||
| #include "game/DawnGame.hpp" | ||||
| #include "display/RenderManager.hpp" | ||||
|  | ||||
| using namespace Dawn; | ||||
|  | ||||
| RenderManager::RenderManager(std::weak_ptr<DawnGame> game) { | ||||
|   this->game = game; | ||||
| } | ||||
|  | ||||
| void RenderManager::init() { | ||||
|   glClearColor( | ||||
|     0.39215686274f,  | ||||
|     0.58431372549f, | ||||
|     0.9294117647f, | ||||
|     1.0f | ||||
|   ); | ||||
|  | ||||
|   glViewport(0, 0, 500, 500); | ||||
| } | ||||
|  | ||||
| void RenderManager::update() { | ||||
|   printf("Rendering\n"); | ||||
|   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | ||||
| } | ||||
|  | ||||
| RenderManager::~RenderManager() { | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user