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.


Topics - sgthale

Pages: [1]
1
General / Noob question about classes
« on: December 09, 2010, 06:37:34 am »
Im very new to C++ myself and i have a quick class question. So i have something like this:

Code: [Select]
class Frame{
    public:
        Frame( const sf::Image& img, const sf::IntRect& rec);
        sf::Image& frame_img;
        sf::IntRect frame_rect;
};
Frame::Frame( const sf::Image& img, const sf::IntRect& rec){
    frame_img = img&;
    frame_rect = rec;
}


But i dont know how to make it so the bottom constructor sets the values for the class´s frame_img and frame_rect

2
Graphics / Painting per pixel
« on: December 08, 2010, 12:38:49 am »
Is there any ways of painting pixels individualy with a color?

3
Graphics / Making polygons
« on: December 07, 2010, 07:18:45 pm »
I looked at the Tutorial - Graphics - Drawing simple shapes to make filled polygons but i need it to support concave shapes so i can fill use it in my dynamic light engine. If not, how can you split the concave into convex shapes?

4
General / sfml-system.dll was not found
« on: December 07, 2010, 09:30:16 am »
So i followed the tutorial from the Tutorial - Getting started - SFML and Code::Blocks (MinGW) and I keep getting this "Error starting the application since the sfml-system.dll wasnt found. Reinstalling the application can solve the problem" when i try to compile it. I dont think im installing it correctly.

 :(  :(  :(  I reinstalled 4 times and keep getting the same error[/b]

I dl latest Codeblocks, full SFML SDK and then
I followed:

Copy the SFML development files to your Code::Blocks installation directory

    * Copy SFML-x.y\include\SFML to the \include directory of your Code::Blocks installation (so that you obtain include\SFML)
    * Copy the *.a files in SFML-x.y\lib to the \lib directory of your Code::Blocks installation

HELP

Pages: [1]
anything