Factor out performance timers into separate files

This should make graphics.cpp somewhat easier to navigate/read.
GL_EXT_timer_query is also made optional, and if it's not present
dummy functions will be called instead.
This commit is contained in:
Jonas Kulla 2013-09-27 16:54:01 +02:00
parent 4ff563725b
commit 307eeb732d
4 changed files with 237 additions and 200 deletions

View file

@ -60,7 +60,8 @@ HEADERS += \
src/gl-util.h \
src/util.h \
src/config.h \
src/tileatlas.h
src/tileatlas.h \
src/perftimer.h
SOURCES += \
src/main.cpp \
@ -87,7 +88,8 @@ SOURCES += \
src/debuglogger.cpp \
src/etc.cpp \
src/config.cpp \
src/tileatlas.cpp
src/tileatlas.cpp \
src/perftimer.cpp
EMBED = shader/transSimple.frag \
shader/trans.frag \