FPS.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
	void Start () {
	
	}
	

Usage Example

コード例 #1
0
    /// <summary>
    /// Initialize GL Window, Shader, and Cube VAO
    /// </summary>
    private void Init()
    {
        CreateWindow();
        InitInput();
        InitUi();

        _fps.OnFrameCount += frameCount => Console.WriteLine($"FPS: {frameCount}");
        _fps.Start();

        _renderer = new OpenGLRenderer();

        //Gl.PolygonMode(MaterialFace.Front, PolygonMode.Line);

        _blockTexture = new Texture("resources/terrain.png");

        _cube = NewCubeRenderable();
        _axis = NewAxisGeometry();

        _mainCamera = new Camera("MainCamera", _viewport);
        _mainCamera.MoveTo(2, 5, -10);
        _mainCamera.LookAt(_cube.Model, Vector3.UnitY);

        _chunks = InitChunks();

        _chunkMeshes = CreateMeshes(_chunks);
    }
All Usage Examples Of FPS::Start