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

Pages: [1]
1
Graphics / Font link error.
« on: January 24, 2011, 12:49:19 am »
i was right i was stupid.


fonts are dependent on sfml-system.lib

i was trying to only introduce lib files as i needed them. maybe put a note to that effect in the tutorials to stop people asking but.. yeah.. i guess i should have known.

its even right there in the include list of font.hpp.
heh. dont know how i missed it.

2
Graphics / Drawing of Shape very slow?
« on: January 23, 2011, 11:00:27 am »
i have never used shape before. i just picked up this library 2 days ago.

but its not the fault of shape or the library.

you are creating at least 600/8 * 400/8 = 3750 new shape objects every frame.

not to mention all the color objects and rect objects that you are copying and moving around.

and if its within an infinite loop in the function itself i dont even know what the memory stack looks like. i dont remember the fine details of allocation in C++ but it cannot be good.

the bottom line is that youre being wasteful and need to think about the best way to utilize your resources.

3
Graphics / Font link error.
« on: January 23, 2011, 04:31:56 am »
all portions of my test code compile except a FontManager i was working on to group loaded fonts.  here is the error:

Code: [Select]

1>FontManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Unicode::Text::Text(unsigned int const *)" (__imp_??0Text@Unicode@sf@@QAE@PBI@Z)
1>C:\Users\Justin\Documents\Visual Studio 2010\Projects\SFMLTest\Release\SFMLTest.exe : fatal error LNK1120: 1 unresolved externals



i know ive done something stupid and if i had to guess its probably something to do with not having the freetype.lib in the project.

or did i not compile the graphics.dll correctly to begin with? when i compiled everything for VC 2010...

or are my character encoding settings in the project wrong?

or do i need a freetype.dll? there are none in the bin folder. do i need to compile one?

4
General / just making sure... (compiling the DLLS for VC 2010)
« on: January 21, 2011, 07:55:51 am »
ok i wasnt sure cause they were put in a Temp folder... i mean im using the dlls and they even work... but ill move the lib files too.

yes and btw thanks for your help. i can run a window now.

5
General / just making sure... (compiling the DLLS for VC 2010)
« on: January 21, 2011, 04:20:19 am »
i compiled the DLLs for VC 2010.. now are there old .lib files still good to use? because the compile seemed to generate a lot of lib files in a Temp/ directory.

should i use those lib files or the ones that i got with the original SDK?

6
General / Can't run first sample
« on: January 20, 2011, 09:48:41 pm »
yeah thanks. i finally found some old forum posts to the same effect, too.

i did look for answers before but sometimes its hard to sift through so many search results.

anyway i compiled last night and will test after work today. high expectations.

7
General / Can't run first sample
« on: January 20, 2011, 10:22:32 am »
where are the 64bit dlls for windows? do you have to compile them yourself?

8
General / Can't run first sample
« on: January 20, 2011, 10:09:50 am »
i was not aware they used separate dlls. things like OGRE etc always just used the one. i cant find them in my 1.6sdk install but since you say they exist ill search for those.

thank you.

9
General / Can't run first sample
« on: January 20, 2011, 10:02:52 am »
the while ( true ) is inconsequential and is just a placeholder til i can get the program to start at all.

it dies on window creation, renderwindow, or normal Window.

10
General / Can't run first sample
« on: January 20, 2011, 09:46:53 am »
Code: [Select]


#include "SFML/Window.hpp"
#include "SFML/Graphics.hpp"

int main( int argc, char *argv ) {

sf::RenderWindow App(sf::VideoMode::GetMode(0), "SFML Shapes");
sf::RenderWindow app(sf::VideoMode::GetMode(0), "SFML Shapes", sf::Style::Fullscreen);

while ( true ) {
app.Display();
}

return 0;

} // End main()



program compiles then crashes: The application was unable to start correctly.

i have all the libraries, dlls in correct location, etc. i have tried both dynamic and static library linkages - the static linkage wont even compile.

ive tried both rendering windows and the regular window class.

im hearing a lot about ATI bugs but i have a NVIDIA graphics card, if it matters.


windows 7 64 bit. VC express 2010

Pages: [1]