mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
This is pretty ugly as the original framework assumed you'd set a single window size at startup and keep it throughout, but for swapbuffers you want to test the rate at various window sizes. With luck a nicer solution can be found, but this at least lays out a marker.
28 lines
400 B
Python
28 lines
400 B
Python
Import('env')
|
|
|
|
if not env['GLUT']:
|
|
Return()
|
|
|
|
env = env.Clone()
|
|
|
|
env.Prepend(LIBS = ['$GLUT_LIB'])
|
|
|
|
progs = [
|
|
'drawoverhead',
|
|
'fill',
|
|
'teximage',
|
|
'swapbuffers',
|
|
'vbo',
|
|
'vertexrate',
|
|
]
|
|
|
|
for prog in progs:
|
|
env.Program(
|
|
target = prog,
|
|
source = [
|
|
prog + '.c',
|
|
'common.c',
|
|
'glmain.c',
|
|
]
|
|
)
|
|
|