You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
.. | ||
NvFoundation.h | 2 years ago | |
README.md | 2 years ago | |
include_gl.h | 2 years ago | |
linux_file_dialog.h | 2 years ago | |
nvpfilesystem.cpp | 2 years ago | |
nvpfilesystem.hpp | 2 years ago | |
nvpsystem.cpp | 2 years ago | |
nvpsystem.hpp | 2 years ago | |
nvpsystem_linux.cpp | 2 years ago | |
nvpsystem_win32.cpp | 2 years ago | |
nvpwindow.cpp | 2 years ago | |
nvpwindow.hpp | 2 years ago | |
perproject_globals.cpp | 2 years ago | |
perproject_globals.hpp | 2 years ago | |
platform.h | 2 years ago | |
resources.h | 2 years ago | |
resources.rc | 2 years ago |
README.md
Helpers nvp
Table of Contents
nvpsystem.hpp
class NVPSystem
NVPSystem is a utility class to handle some basic system functionality that all projects likely make use of.
It does not require any window to be opened. Typical usage is calling init right after main and deinit in the end, or use the NVPSystem object for that. init
- calls glfwInit and registers the error callback for it
- sets up and log filename based on projectName via nvprintSetLogFileName
- if NVP_SUPPORTS_SOCKETS is set, starts socket server as well
nvpwindow.hpp
class NVPWindow
base class for a window, to catch events
Using and deriving of NVPWindow base-class is optional. However one must always make use of the NVPSystem That takes care of glfwInit/terminate as well.