MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / init

Function init

Source/Display.cpp:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22 void init()
23 {
24 sf::ContextSettings settings;
25 settings.depthBits = 24;
26 settings.stencilBits = 8;
27 settings.antialiasingLevel = 0;
28 settings.majorVersion = 3;
29 settings.minorVersion = 3;
30
31
32 window = std::make_unique<sf::RenderWindow>(sf::VideoMode::getDesktopMode(),
33 "HopsonCraft - 'V4.0'",
34 sf::Style::Fullscreen,
35 settings);
36 glewInit();
37 glewExperimental = GL_TRUE;
38 glViewport(0, 0, get().getSize().x, get().getSize().y);
39
40 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
41
42 //window->setFramerateLimit(144);
43 }
44
45 void close()
46 {

Callers 2

noiseTestFunction · 0.70
initilizeFunction · 0.70

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected