Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zchary

Pages: [1]
1
General / Re: Black screen showing after running program.
« on: July 13, 2018, 05:01:36 am »
SFML version is the newest 2.5.0, my computer system is macOS Mojave 10.14 Beta, MacBook Pro (Retina, 13-inch, Early 2015), Xcode version is 9.3, CLion version is 2018.1.5. :)

2
General / Re: Black screen showing after running program.
« on: July 10, 2018, 10:39:20 am »
here's my code:
#include<SFML/Graphics.hpp>
int main(int argc, char const *argv[])
{
   sf::RenderWindow window(sf::VideoMode(640,800),"TEST");
   sf::CircleShape shape;

   shape.setRadius(40.f);
   shape.setPosition(100.f, 100.f);
   shape.setFillColor(sf::color::Cyan);

   while(window.isOpen())
   {
      sf::Event event;
      while(window.pollEvent(event))
      {
         if(event.type==sf::Event::Closed)
            window.close();
      }
      window.clear();
      window.draw(shape);
      window.display();
   }


   return 0;
}

the `shape` only shows after I max maximizing the window.

3
General / Black screen showing after running program.
« on: July 09, 2018, 05:54:57 am »
I'm running an example of SFML tutorial on Xcode(macOS), showing a black screen instead of Cyan circle. After a few trying, I find that the circle only shows after I Maximizing the window. So I think that there might be some problems on the SFML package or the system.

anyone has the same problem? please help...

Pages: [1]