Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 1 of 1

Thread: How to call a Function within GLFW Window ?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2018

    How to call a Function within GLFW Window ?

    I have GLFW window, and I've defined a specific height and width for it. Here's my GLFW window :
    Code :
    GLFWwindow *window = glfwCreateWindow( WIDTH, HEIGHT, "Exercise 3" , nullptr, nullptr );

    And now, I want to call FPS in my window title. Side by side with my own title. I came across FPS counter function
    Code :
    double calcFPS(double theTimeInterval = 1.0, string theWindowTitle = "NONE"){...

    And I can't seem to call the function from my main loop where I create my GLFW window as well. When I call the function and replace the function input parameter (2nd parameter) using my own GLFW window, I get error "No matching function for call to..". Any suggestion ?
    Last edited by pixie_laluna; 11-02-2018 at 10:49 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts