Bbop-Library 0.4.1-alpha
Opengl library to build 2d apps and game that implement a light system named Lumop
 
Loading...
Searching...
No Matches
benchmark.cpp File Reference
#include "../../../include/BBOP/Performance/benchmark.h"
#include <GLFW/glfw3.h>
#include <random>

Functions

mt19937 gen (rd())
 
uniform_int_distribution< int > distribx (0, BBOP_WINDOW_SIZE.x)
 
uniform_int_distribution< int > distriby (0, BBOP_WINDOW_SIZE.y)
 
uniform_int_distribution< int > distribs (0, 255)
 
bool bbopBenchMark (GLFWwindow *&window, Scene &sceneToUse)
 

Variables

vector< SpritespriteList
 
vector< RectangleShaperectList
 
double lastTime
 
random_device rd
 

Function Documentation

◆ bbopBenchMark()

bool bbopBenchMark ( GLFWwindow *& window,
Scene & sceneToUse )

◆ distribs()

uniform_int_distribution< int > distribs ( 0 ,
255  )

◆ distribx()

uniform_int_distribution< int > distribx ( 0 ,
BBOP_WINDOW_SIZE. x )

◆ distriby()

uniform_int_distribution< int > distriby ( 0 ,
BBOP_WINDOW_SIZE. y )

◆ gen()

mt19937 gen ( rd() )

Variable Documentation

◆ lastTime

double lastTime

◆ rd

random_device rd

◆ rectList

vector<RectangleShape> rectList

◆ spriteList

vector<Sprite> spriteList