Exemple #1
0
        public MainWindow()
            : base(1024, 640, new GraphicsMode(new ColorFormat(24), 16, 0, 2))
        {
            boatShader           = new ModelShader("ModelShader");
            seaShader            = new SeaShader("SeaShader");
            skyBoxShader         = new SkyBoxShader("SkyBoxShader");
            boatShader.theCamera = seaShader.theCamera = skyBoxShader.theCamera = new Camera(Width, Height, new Vector3(-17.06843f, -6.339379f, -28.01191f), new Vector3(0.2402344f, -11.31787f, 0f));// new Vector3(-39.28024f, -32.6281f, -43.21751f), new Vector3(1.0644f,-0.6015f,0f));
            cameraController     = new CameraController(boatShader.theCamera, this);



            stopWatch = new Stopwatch();
            stopWatch.Start();
            VSync = VSyncMode.On;

            Font font = new Font(FontFamily.GenericSansSerif, 12.0f);
        }
Exemple #2
0
 public void Render(SeaShader s)
 {
     //s.Render(theSea);
     s.SetTexture("waves", seaTexture);
     myVBO.Render(s, BeginMode.Quads);
 }