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

Pages: 1 2 [3] 4 5 ... 11
31
SFML website / Precompiled binaries Linux 64bit problem
« on: February 26, 2015, 10:13:49 pm »
Basically when you download Linux 64 bit binaries from the SFML website there are 3 files named : "include" "share" and "lib". If you copy that to /usr/local and then compile your program, you should get this error in the terminal:
error while loading shared libraries: libsfml-graphics.so.2

I've renamed "lib" folder which was extracted from the SFML to "lib64" and copied it to /usr/local and now everything works

32
General / Re: Is it fine to have sf::Font and sf::Text as global
« on: December 30, 2014, 05:40:17 pm »
Ok, I just wanted to know if there is any downside of having it global, and I've got answer.
I will try to find out what is Resoruce Manager such as:
 https://github.com/SFML/SFML/wiki/Tutorial:-Image-Manager

@Ixrec Thanks for the alternatives, but I think that resource manager should work fine in this case, so I'll stick with #2.

So I have to replace namespaces with classes then.

Also I've found this and I think that this should be in the tutorials.
https://github.com/SFML/SFML/wiki/FAQ#prog-global

33
Feature requests / Auto creating folder if it doesn't exist
« on: December 28, 2014, 02:43:58 pm »
When you are saving something like screenshot using sf::RenderWindow::Capture() and when you are trying to save it to some folder and if that folder doesn't exist, why doesn't it get create it?

34
General / Is it fine to have sf::Font and sf::Text as global
« on: December 28, 2014, 01:35:53 pm »
So, i have

namespace menu
{
    void loadFiles();
    void menu(sf::RenderWindow &window);
    void main(sf::RenderWindow &window);
    void options();

}

and I have sat up Text and Font inside the menu::loadFiles, and I'm drawing it inside the menu::main(). I've made them global so that I can use it inside both functions and I wanna know is it fine to have them global or should I find some other way?

35
SFML projects / Re: testEngine
« on: October 23, 2014, 04:58:21 pm »
Okay, I'll use SmallGameEngine's design.

36
SFML projects / Re: testEngine
« on: October 22, 2014, 11:34:57 pm »
Okay this is my idea:
Game engine that would have simple menu, in which you can alt + enter to make it fullscreen or windowed, that you can minimize it ( I'm talking about features that are not supported by default on the Linux), in the game create variable Vector2i called gameDrawingFrom that would hold x and y coordinates of the window plus space on the left, minus space on the right and y would hold y+ [space on the top], + space on the bottom, size of those spaces (margins) would be resolution of loaded image/s ( HUD's ) on which I would write/draw stuff like players lifes, players name and stuff like that on it.

I need something that would replace my global variable idea of handling window outside of the only one function. Any other way of calling e.g window.draw() in the function in which sf::RenderWindow wasn't declared that wouldn't produce bugs.

37
SFML projects / Re: testEngine
« on: October 22, 2014, 09:39:14 pm »
Okay, I've thought that by making sf::Window global, but using its functions in just one cpp file I would be able to avoid "weird construction and deconstruction" , but it seems that I’m having same bugs (when I change from Fullscreen to Windowed window is hidden).
https://github.com/paupav/testEngine/blob/master/window.cpp

Can anyone suggest me any design that doesn't include global variables (other than SmallGameEngine , I find its design complicated ).

38
SFML projects / Re: testEngine
« on: October 20, 2014, 09:12:08 pm »
This is just hobby project. I've decided that i will create new .cpp file named window.cpp and put every function in it.
Thanks everyone for your time!

39
SFML projects / Re: testEngine
« on: October 20, 2014, 08:11:11 pm »
There is almost nothing in there...
Also - you shouldn't use sf::RenderWindow as a global, bad bugs tend to happen because globals get constructed and destructed in weird order and sf::RenderWindow is sensitive to that so it shouldn't be global.
can i make it global pointer?

40
SFML projects / testEngine
« on: October 19, 2014, 10:29:53 pm »
Can anyone give me review on this basic game engine, and tell me if I'm on the right path or should I abandon it and start writing new one.

https://github.com/paupav/testEngine

41
General / Statically linking SFML
« on: September 04, 2014, 02:42:22 am »
Am I allowed to statically link SFML or can I only dynamically link it?

42
General discussions / Re: Using SFML just as a pure GUI tool
« on: August 31, 2014, 10:08:57 pm »
Use GTK+
GTK for the victory!
That's what Elementary OS developers are using. It is backed up by Gnome foundation:
http://www.youtube.com/watch?v=mzSPGkOyzW8
http://www.youtube.com/watch?v=n77cwRJUrLg

More about GTK:
http://www.gtk.org/tutorial1.2/gtk_tut-1.html

EDIT:
If you are interested gtk+ c++ bindings is called gtkmm.

43
General discussions / Re: Randomizer.hpp
« on: August 27, 2014, 11:55:28 pm »
what's wrong with std::rand() ?

44
Network / Re: Is SFML network enough for making MMO game
« on: August 27, 2014, 11:43:00 pm »
I've created few smaller games (3) . 1 even has menu! But 2 are  horribly programmed and 1 is bad programmed. :)
http://en.sfml-dev.org/forums/index.php?topic=16130.0

Also there was no need to bump this thread I've got my answer :)

45
General discussions / Re: awesome youtube channel
« on: August 23, 2014, 09:43:33 pm »
I thought that thats why General Discussion is here. So that we can ask things that come to our mind.
Also are you uusing Arch linux since your avatar reminds me on Arch Linux's logo.

Pages: 1 2 [3] 4 5 ... 11