public void InitializeComponent() { GL.ClearColor(Color.LightGray); GL.PointSize(5f); fovy = initialFovyVal; _text = new TextGenerator("fonts/arialbd.ttf", "arialB"); //TextGenerator.ProjMatrix = Matrix4.CreateOrthographic(512, 512, -10, 10); _camera = new Scene.Camera(); _camera.Position = new Vector3(0, 0, -50); _scene = new SceneRenderer(); _scene.AddLight(new Scene.Light()); _scene.AddGameObject(_gameObject); _scene.AddCamera(_camera); _scene.SetProjectionMatrix(fovy, (float)ClientSize.Width, (float)ClientSize.Height, 20.0f, 500.0f); }