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

Pages: [1]
1
General / Problem with compiling SFML project in 2008
« on: May 05, 2013, 05:08:19 pm »
Ok, I have created SFML solution 2008 with CMake. Now I want to build it, but I get errors like this:

Error   25   error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "private: void __thiscall sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AAEXXZ)   GlContext.obj   sfml-window

and so on. I understand that it can't find external libraries, but how can I fix this?

full build log:
http://pastebin.com/M1m24hMY

Thank's for help.
PS Windows 7 x64(but I'm using SFML for x32 platform), CMake 2.8.10.2, latest SFML source,

2
Graphics / How to quickly draw image by pixel? SFML 2
« on: October 26, 2012, 07:40:34 am »
I use this code:

sf :: Image image;
image.create(1024, 768, sf :: Color());

sf :: Texture texture;
texture.loadFromImage(image);

sf :: Sprite sprite(texture);

// some code here

for ( int i = 0; i < WIDTH; ++i )
        for ( int j = 0; j < HEIGHT; ++j )
                image.setPixel(i, j, f(t, i, j, image.getPixel(i, j)));
texture.loadFromImage(image);
 

But I think this isn't quick solution. Can You help?
 

3
Graphics / Problem with inheritance from Drawable
« on: October 04, 2012, 09:03:31 pm »
I'm trying to create this class from Drawable, but I get:

error C2259: 'Triangle' : cannot instantiate abstract class in Visual Studio 2008
I'm using sfml 1.6
This is my code. Thank's for any help.


class Triangle : public sf :: Drawable
{
public:
        Triangle () { };
        Triangle ( sf::Vector2f Pos, sf::Vector2f Scale, float Rotation, sf::Color Color ) { };
        ~Triangle () { };
        void Render ( sf :: RenderTarget& Target ) { };
};
 

Pages: [1]