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

Pages: [1] 2 3 4
1
General / Re: C++: Advice for creating a 'screen' and 'object' system
« on: April 12, 2013, 04:35:56 pm »
 :'(

2
General / Re: Error: Can't find the specified file?
« on: April 12, 2013, 04:33:22 pm »
All I remember was that VS said something about SFML being outdated and had to be updated in some way, so I pressed 'OK'. Maybe that's what it was.. I'm on VS 2012 Ultimate.

3
General / Re: C++: Advice for creating a 'screen' and 'object' system
« on: April 12, 2013, 03:32:00 pm »
Oh no, I definitely don't want to use someone else's code to do this. I believe I can do this myself. I was just curious what opinions/techniques/ideas others might have.

I'm totally okay to make stuff from scratch. I'm relatively new to C++, but I think I know about 90-95% of it. I'm just a little unsure about instances/pointers/etc. But I should be able to manage.

4
General / Re: Error: Can't find the specified file?
« on: April 12, 2013, 03:26:33 pm »
I didn't put anything in project settings. I haven't used VS much either, it's practically a fresh install.

All I did was download SFML, open it, and try to run the pong..

5
General / Re: AW: Re: Loading fonts to a custom surface?
« on: April 12, 2013, 03:23:11 pm »
It's always frustrating to me when it's easier for me (a beginner) to do something manually from scratch the long way, than to use someone else's library (freetype) which is supposed to make the job simpler.
You make it sound like it's the fault of others, that with your quite basic understanding of C++ and programming in general, can't understand the API and docs of other libraries.
Programming can be quite frustrating at times and one often wishes to get a simple approach to thongs, but in the end it's not a problem of the library, but a lack of knowledge on ones own side. ;)

Doing things on your own can teach you a lot and since you'll run into similar problems the other libraries had as well and might slowly start to understand how those library work, but it will probably take longer to get a properly working version and depending on the complexity you'll fail. :)

Well to be honest, it is (half) the fault of others. The better someone is at programming, the worse they seem to be at tutoring and making good (simple/instinctive) libraries. If someone makes a tutorial and I do the exact same thing as them and it doesn't work, then it is a bad tutorial. And if I also don't understand it then it's even worse. I have seen some people that are very good and very bad at it. I think there would be many more, and good programmers out there if people designed their libraries and tuts a bit better. It's bad enough computers can be a pain in the butt, but that doesn't mean tuts and libraries should be.

Quote
If you want something which is extremely simple (but limited), you can try this code:
http://www.nothings.org/stb/stb_truetype.h
Thanks Laurent, I'll give that a shot and see how it goes.

I can't get that to work either... It's humorous in a way:

"Complete program (this compiles)"
No it doesn't!  ;D >:(

A ton of errors all over the place.

"Complete program: print "Hello World!" banner, with bugs"
Great!

"Incomplete text-in-3d-api example"
How incomplete?

"// This uses a very crappy packing."
LOL

"I provide an API for this, but I don't recommend it"
Me too!

The world of programming, (and computers) is in need of a revolution I think...

A file/lib that is buggy which I don't understand is the last thing a beginner needs in their program. I'll go back to my original idea of sprite-fonts.

You may close this thread now. I'm done here.

6
General / Re: Error: Can't find the specified file?
« on: April 12, 2013, 03:14:03 pm »

7
General / Re: Error: Can't find the specified file?
« on: April 12, 2013, 11:39:21 am »
I don't know. I'm not skilled vocabularily speaking.

I just click 'Run without debugger' and instantly I get a Windows message popup.

8
General / Re: Loading fonts to a custom surface?
« on: April 12, 2013, 10:42:10 am »
Alright.. I will give it a long hard try to get freetype to work. If I have any problems I'll ask here.

UPDATE: I only just started the tutorial and already have problems.

EDIT: No screw it, it's too hard. I can't understand what they've typed. Their tuts has errors all over the place. It's not a tut for a C++ beginner. I'll do it the long way, at least I know how.

9
General / Re: C++: Advice for creating a 'screen' and 'object' system
« on: April 12, 2013, 06:19:31 am »
Basically yeah, just I would make it a bit more simpler, for retards like myself.  ;D

10
General / Re: Loading fonts to a custom surface?
« on: April 12, 2013, 03:46:22 am »
I changed my mind. I'm going to export the fonts manually as images and load them myself. I checked DX it cannot be done without getting the data from video memory, which basically means:

1) It will be slow
2) If I want to change API it won't work because I can't be switching back and forth between APIs.

It's always frustrating to me when it's easier for me (a beginner) to do something manually from scratch the long way, than to use someone else's library (freetype) which is supposed to make the job simpler.

Oh well.

11
General / Re: C++: Advice for creating a 'screen' and 'object' system
« on: April 12, 2013, 03:37:56 am »
Quote
If you wouldn't just ignore essential parts of my post, then you'd have checkout the given link and would've noticed, that I was also referring to classes in general. STL containers are really not that hard to understand with the right book at hand.

I did check those links out. I appreciate your help. Though I have little idea what 'STL container' is.

Quote
You could then do for example.

MainGame game;
MainMenu menu;

statemanager.addState(game);
statemanager.addState(menu);

stateManager.changeState(GameState::type::MainGame);

I was thinking something more like:

screen_create(name,size,color,etc)
object_create(name,etc,...)
place_object_in_screen(objectname,screenname,x,y)
etc.

12
General / Re: Error: Can't find the specified file?
« on: April 11, 2013, 02:52:21 pm »
No, but I just built it now and I still get the same error.

Says 2 failed.

fatal error C1083: Cannot open include file: 'QWidget': No such file or directory
fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory

But when I run it still complains about the audio lib.

13
General / Re: Loading fonts to a custom surface?
« on: April 11, 2013, 02:47:39 pm »
I'm gonna try and see if maybe DirectX has something useful.

14
General / Re: Loading fonts to a custom surface?
« on: April 11, 2013, 03:18:38 am »
Does anyone understand how to use freetype 2?

I'm reading the documentation but its kinda over my head..

All I want to do is load a font from HDD into memory and then write/draw to custom surface. I don't get why they complicate the library so much. I'm surprised anyone can understand this.

Would it be easier for me to just use the files/code/functions from SFML?

15
General / Error: Can't find the specified file?
« on: April 11, 2013, 03:08:29 am »
I opened SFML build in Visual Studio and try to run the Pong demo.

I get error: \vc2008\sfml-audio\Debug static\sfml-audio.lib'.
The system cannot find the file specified.

Am I supposed to do something like tell it where the files are?

Sorry I'm also new to VS..

Pages: [1] 2 3 4