Guest User

Untitled

a guest
Feb 18th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. bool Window::IsVSync() const
  2. {
  3. return static_cast<bool>(m_WindowData.VSync);
  4. }
  5.  
  6. enum class VSync : bool
  7. {
  8. Disable = false,
  9. Enable = true
  10. }
  11.  
  12. VSync Window::IsVSync() const
  13. {
  14. return m_WindowData.VSync;
  15. }
  16.  
  17. binary '<<': no operator found which takes a right-hand operand of type 'VSync' (or there is no acceptable conversion)
  18.  
  19. std::cout << myWindow.IsVSync() << "n";
Add Comment
Please, Sign In to add comment