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

Pages: 1 ... 11 12 [13]
181
General / Re: sf::Vertex question
« on: April 15, 2015, 08:17:35 am »
Oh yes I found this in tutorials thanks.

182
General / Resource textures
« on: April 14, 2015, 05:38:31 pm »
Hi!  :)

My question is how to load images from resources of .exe file, as you know VS2012 supports it. But how can i do it if sfml can load from image-file and stream. Am i missing something in my head? Can SFML load from .exe resources with loadFromStream() or loadFromMemmory()?

183
General / sf::Vertex question
« on: April 14, 2015, 05:29:14 pm »
Hello! :)

Todays question is how to draw SF::VERTEX. I checked sf::vertex doesn't have draw() function. If you want to know for what i need it here is example: put one pixel on screen.

184
Graphics / A question about sf::RenderWindow
« on: April 12, 2015, 02:07:10 pm »
Hello  :) i want to ask everyone about sf::RenderWindow as you know evethyng in 2D scales in same time with window for example the sprite was in size of 800x600, the window scaled in 2 times and the size of sprite became 1600x1200. So the question is: how to prevent this scaling?

185
Graphics / Re: sf::RenderWindow problem
« on: April 12, 2015, 01:47:10 pm »
It was with me to. :) You may use release libs for debud or debug libs for release - this is the reason for crashing! So if you want to stop crashing use sfml-xxx-d.lib in linker when you compile the debug version of programm or sfml-xxx.lib for release version. :)

186
Graphics / Texture error(solved)
« on: March 28, 2015, 09:53:08 am »
Hello :) and have a huge problem with SFML I created a project, setuped it.

Than I wrote it
sf::RenderWindow Wind(sf::VideoMode(800,600), "main");
sf::Texture tex;
tex.loadFromFile("image.png");
 
So when I load a texture some creepy stuff appears in console in speed of sound and than my program crashes! What does that means?

187
Graphics / Re: Perfect collision with rotated rectangle
« on: March 03, 2015, 07:17:18 am »
 :-\ I so bad at searching I was looking for it about half hour but I didn't find anything. If you want to know collision with another rectangle or point.
OS windows 8
SFML 2.2

188
Graphics / Perfect collision with rotated rectangle
« on: March 02, 2015, 10:28:42 am »
Help me! I need some help I have a rectangle. How to make perfect collision with rotated rectangle without any extra empty space (getGlobalBounds() feature that is comfortable in some ways).

189
Window / Get pixel from window
« on: March 02, 2015, 10:07:45 am »
Exscuse me. Is there any fast way to get every the window pixel with knowledge of pixel coordinates?

190
Graphics / Re: collisions with mouse
« on: February 25, 2015, 07:45:42 am »
Guys I found a way with box2D library!

191
Window / Re: Creating a window in a window.
« on: February 24, 2015, 07:21:54 pm »
Most easy way (if your using win32 and sfml 2.x) you can handle sf::RenderWindow to a HWND window and call message boxes for HWND window and make parent windows and in the same window draw sfml! Cool!

192
Graphics / collisions with mouse
« on: February 24, 2015, 06:46:43 pm »
Hellow everyone !  :) I have some problems with sfml  :'( the thing is that  i am checking if mouse is over the sprite and everything seems fine(first time a made this)

bool isMouseOverObjectBox(sf::Sprite &object, sf::Texture &tex, sf::RenderWindow &target){
               
                sf::Vector2i Mpos(sf::Mouse::getPosition(target));
                sf::Vector2f pos(object.getPosition());
                sf::Vector2u size(tex.getSize());
                if(Mpos.y >= pos.y && Mpos.x >= pos.x && Mpos.y <= pos.y+size.y && Mpos.x <= pos.x+size.x){
                return true;
                }
                return false;
        }


but this isn't all i want. i want to make it work with rotated, scaled sprite and unfortinatly i don't know how to do it can anyone help me?

Pages: 1 ... 11 12 [13]
anything