comparison Samples/Sdl/FusionMprSdl.cpp @ 891:0aff28f15ea2

new abstraction: IViewport
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jul 2019 18:18:42 +0200
parents 77c96ba899f9
children 0c5201499af8 9c2f6d6b9f4a
comparison
equal deleted inserted replaced
890:77c96ba899f9 891:0aff28f15ea2
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 #include "FusionMprSdl.h" 21 #include "FusionMprSdl.h"
22 22
23 #include "../../Applications/Sdl/SdlOpenGLWindow.h" 23 #include "../../Applications/Sdl/SdlOpenGLContext.h"
24 24
25 #include "../../Framework/StoneInitialization.h" 25 #include "../../Framework/StoneInitialization.h"
26 26
27 #include "../../Framework/Scene2D/CairoCompositor.h" 27 #include "../../Framework/Scene2D/CairoCompositor.h"
28 #include "../../Framework/Scene2D/ColorTextureSceneLayer.h" 28 #include "../../Framework/Scene2D/ColorTextureSceneLayer.h"
585 585
586 void FusionMprSdlApp::Run() 586 void FusionMprSdlApp::Run()
587 { 587 {
588 // False means we do NOT let Windows treat this as a legacy application 588 // False means we do NOT let Windows treat this as a legacy application
589 // that needs to be scaled 589 // that needs to be scaled
590 SdlOpenGLWindow window("Hello", 1024, 1024, false); 590 SdlOpenGLContext window("Hello", 1024, 1024, false);
591 591
592 controller_->FitContent(window.GetCanvasWidth(), window.GetCanvasHeight()); 592 controller_->FitContent(window.GetCanvasWidth(), window.GetCanvasHeight());
593 593
594 glEnable(GL_DEBUG_OUTPUT); 594 glEnable(GL_DEBUG_OUTPUT);
595 glDebugMessageCallback(OpenGLMessageCallback, 0); 595 glDebugMessageCallback(OpenGLMessageCallback, 0);