-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.h
36 lines (31 loc) · 956 Bytes
/
test.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <iostream>
#include <queue>
#include <SFML/Graphics.hpp>
#include <SDKDDKVer.h>
#include <Windows.h>
#include <stdio.h>
#include <conio.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")
using namespace sf;
class Test {
public:
int fps = 100;
int circleCount = 0, defaultCircleCount = 0;
int startingIndex = 0;
int numUpdates = 60 * fps; //run for a full minute
int updates = 0;
int frames = 0;
float startPosition = 0.f;
float positionMarker = startPosition;
float finalPosition = (float)VideoMode::getDesktopMode().width;
float interval = (finalPosition - startPosition) / numUpdates;
Texture circleTex; Sprite circles[1000];
Texture defaultCircleTex; Sprite defaultCircles[10000];
Texture markerTex; Sprite progressionMarker;
void run(RenderWindow &window, int &width, int &height, int testChoice);
void update(RenderWindow &window);
void render(RenderWindow &window);
void pollInput(bool &done);
};