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

Pages: [1]
1
General / Re: [Visual Studio 11] Yet another build problems thread
« on: May 07, 2013, 07:46:19 am »
Did You added in Project properties -> C/C++ -> Preprocessor -> Preprocessor Definitions SFML_DYNAMIC or SFML_STATIC ?
Maybe You need also use precompiled libraries for Visual Studio 2012.

2
awesome! pretty music, simple interface, good description. thank's!

3
General / Re: Problem with compiling SFML project in 2008
« on: May 06, 2013, 02:28:55 pm »
I already seen before your advices about reinstall in another threads, but it didn't work for me.
This is weird, anyway.

4
General / Re: Problem with compiling SFML project in 2008
« on: May 06, 2013, 02:06:34 pm »
Error about unsupported architecture: http://pastebin.com/ZqkFxWNh
As I said running as administrator solves this problem.

5
General / Re: Problem with compiling SFML project in 2008
« on: May 06, 2013, 08:02:15 am »
I installed by default in "Program Files (x86)". Everything in installation was default too.

offtop: check my solution https://github.com/SFML/SFML/issues/306 =)

6
General / Re: Problem with compiling SFML project in 2008
« on: May 06, 2013, 07:56:00 am »
But without admin privileges it doesn't found that I have Visual Studio 11 compiler. Sounds weird but it is a fact.

7
General / Re: Problem with compiling SFML project in 2008
« on: May 06, 2013, 07:25:52 am »
After finding this ticket for testing idea CDS_RESET
https://github.com/SFML/SFML/issues/306

BTW: I have finished building with CMake for Visual Studio 2012, but I had some problems because I didn't run CMake with admininistrator permission, maybe adding this hint in tutorial would be very nice. =)
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php

8
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,

9
Is it open source?

10
Graphics / Re: How to quickly draw image by pixel? SFML 2
« on: October 26, 2012, 12:35:19 pm »
thank's. sorry for mistake with partition

11
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?
 

12
C / Re: Change DLL path ?
« on: October 26, 2012, 07:31:05 am »
What about static linking? Maybe in would solve the problem.

13
Graphics / Re: Problem with inheritance from Drawable
« on: October 05, 2012, 01:17:02 pm »
Don't you see that const in the prototype?

Unbelievable! I never used code like this. Thank's You very much for everybody.

14
Graphics / Re: Problem with inheritance from Drawable
« on: October 05, 2012, 07:54:10 am »
Thank's for everybody, but I'm still getting compilation error.

Have a look at the sf::Drawable class and use the exact same prototype for Render.

In SFML-1.6 Drawable.hpp
virtual void Render(RenderTarget& Target) const = 0;

So I write in my code(redeclaring virtual function Render)
void Render ( sf :: RenderTarget& Target ) { };

But I don't understand where is error. Can You provide some code for me?
Thank's

15
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]
anything