mirror of
https://github.com/SFML/SFML.git
synced 2025-01-19 07:45:13 +08:00
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1046 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
3b1abf635e
commit
f00e0ef635
@ -5,7 +5,6 @@
|
|||||||
#include <SFML/Window.hpp>
|
#include <SFML/Window.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Entry point of application
|
/// Entry point of application
|
||||||
@ -16,7 +15,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Create the main window
|
// Create the main window
|
||||||
sf::Window App(sf::VideoMode(640, 480, 1), "SFML Window");
|
sf::Window App(sf::VideoMode(640, 480, 32), "SFML Window");
|
||||||
|
|
||||||
// Create a clock for measuring the time elapsed
|
// Create a clock for measuring the time elapsed
|
||||||
sf::Clock Clock;
|
sf::Clock Clock;
|
||||||
|
@ -659,8 +659,6 @@ bool WindowImplX11::CreateContext(const VideoMode& Mode, XVisualInfo& ChosenVisu
|
|||||||
glXGetConfig(ourDisplay, &Visuals[i], GLX_SAMPLE_BUFFERS_ARB, &MultiSampling);
|
glXGetConfig(ourDisplay, &Visuals[i], GLX_SAMPLE_BUFFERS_ARB, &MultiSampling);
|
||||||
glXGetConfig(ourDisplay, &Visuals[i], GLX_SAMPLES_ARB, &Samples);
|
glXGetConfig(ourDisplay, &Visuals[i], GLX_SAMPLES_ARB, &Samples);
|
||||||
|
|
||||||
std::cout << "Red = " << Red << " Green = " << Green << " Blue = " << Blue << std::endl;
|
|
||||||
|
|
||||||
// First check the mandatory parameters
|
// First check the mandatory parameters
|
||||||
if ((RGBA == 0) || (DoubleBuffer == 0))
|
if ((RGBA == 0) || (DoubleBuffer == 0))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user