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 - sggocu88

Pages: [1]
1
Try updating to SFML 2.4.2. Also what's your GPU?
I updated. Still don't work.. My gpu is intel G41 Express chipset. I know it's bad and maybe my pc's specs is the problem but if i make a simple game then people with bad pc's can't play my simple game with anti aliasing and will be ugly. Any other suggestions ?

3
Hi. i try do draw an anti aliased circle, but i get this error in consol:

Warning: The created opengl context does not fully meet the settings that were requested
Requested: version=1.1 ; depth bits=0 ; stencil bits=0; AA level = 8 ; core=false ; debug=false; sRGB=false
Created: version=2.1 ; depth bits=0 ; stencil bits=0; AA level = 0 ; core=false ; debug=false; sRGB=false

In my graphics card settings anti aliasing is enabled , i tried different values for anti aliasing , but don't work.
Code :

#include <SFML/Graphics.hpp>

int main()
{
    sf::ContextSettings settings;
    settings.antialiasingLevel = 8;
    sf::RenderWindow window(sf::VideoMode(800, 600), "Something", sf::Style::Default, settings);
    sf::CircleShape shape(200.f);
    shape.setFillColor(sf::Color::Green);

    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;
}

4
Graphics / Re: How to create a rounded rectangle? Give me the code pls
« on: February 22, 2017, 10:30:01 pm »
Ok. I searched on the wiki and i found the code.

5
Graphics / Re: How to create a rounded rectangle? Give me the code pls
« on: February 22, 2017, 09:15:46 pm »
Hi. How can i create a rounded rectangle ? i'm beggnier so please give me a code with a function to do this or a class or something .

6
Graphics / Re: Stretched image text when scaling down
« on: February 20, 2017, 11:45:57 am »
Sry, not stretched, the right word is without anti aliasing.
But at scales like 0.75 looks good ..

7
Graphics / No anti aliased image text when scaling down
« on: February 20, 2017, 11:21:58 am »
Hi. I have an 4000x3000 image. I want to scale down that image ( e.g to 0.25,0.25). But why text looks no anti aliased?? Aspect ratio is not maintained with 0.25 and 0.25 ?? Smooth is true.
Example code:

using namespace sf;

Texture texture;
texture.loadFromFile(image.png);
texture.setSmooth(true);
Sprite sprite(texture);
sprite.setScale(0.25,0.25);
sprite.setPosition(100,100);

window.clear();
window.draw(sprite);
window.display();

 

8
Hi. If i don't put window.clear() and window.display() inside the main loop my game have 40-50 cpu usage. If i put them, my game have 1-2 cpu usage.
Why ? Or it's a problem with my pc ?
Sry for bad english

9
General / This Game code organization, is good ??
« on: February 15, 2017, 11:54:42 am »
Hi. It's bad if my game organization  wil be something like this ? :

while (window.isOpen()
{
if (user press new game button) go to room newgame();
}

void newgame()
{
while (1)
{
//Some code there

//and if user want to go main menu:
return;

}

}

Is bad to do this ? i want create very much rooms with infinite loop and if user want to exit  function will return and go back to main. Every room will have they own pollevent .
IS BAD ?
SRY FOR MY ENGLISH
I AM BEGGINER

10
General discussions / Re: GUI Library with ANIMATIONS ?
« on: February 11, 2017, 12:26:24 pm »
Thanks for help guys.

11
General discussions / SFGUI vs TGUI
« on: February 10, 2017, 02:01:36 pm »
Which is better ?

12
General discussions / Re: GUI Library with ANIMATIONS ?
« on: February 10, 2017, 12:48:06 pm »
Hi. Thanks for help, but i have one more question.
So i make a simulation tycoon game and gui is very important for this game, so i need my buttons or menus or sprites to do animations like this : https://daneden.github.io/animate.css/
So which library should i use to do same thing with sprites or buttons when are clicked  ?

13
General discussions / GUI Library with ANIMATIONS ?
« on: February 09, 2017, 09:47:06 pm »
Hi. Please tell me a GUI library which can be easy integrate in SFML.
I need gui animations, not only buttons and scrollbars etc. I need to animate things like buttons or sprites on click , or transition effects for sprites or visual effects or something like that.
I don't like Qt, it does not fit with my needs and i really don't understand that annoyng restrictions for lgpgl license... :'(
I need free library. :(
I know about SFGUI, TGUI, wxWidgets, GTK+, I DON'T NEED THEM. I can paint buttons in paint and put them in game , i need only do animations or effects. 8)

I know about integrating HTML in a c++ app... i know html and css .. but it's a good idea to integrate HTML with SFML ? if yes, how ?

HELP ME PLEASE.
P.S: Sorry for my bad english. :D

Pages: [1]