forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Good place to learn C that might be PSP friendly?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
hexperience



Joined: 05 Jul 2005
Posts: 19

PostPosted: Wed Aug 03, 2005 1:03 am    Post subject: Good place to learn C that might be PSP friendly? Reply with quote

Hi All,

I've been reading like mad, both to refresh my C and to learn both PS2 and PSP dev.

I would like to do some simple C graphics stuff on plain linux first. I have found lots of "how to program graphics for X Windows" info, but I was hoping someone might know of some material that might be a bit lower level.

For example, if I learn how to put pixels directly into a PC/Linux screen buffer, that would help me with PSP dev more than learning how to open an X window object right? I want to bridge the gap between helloworld.c and actually using screen buffers.

Any links would be most helpful.
Cheers
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Wed Aug 03, 2005 1:44 am    Post subject: Reply with quote

http://wiki.pspdev.org/psp:programming_faq

Go there, get the toolchain and the PSPSDK, then look at the samples in the SDK. There are plenty of good samples that will get you started.
_________________
Lego of my Ago!
Back to top
View user's profile Send private message AIM Address
liquid8d



Joined: 30 Jun 2005
Posts: 66

PostPosted: Wed Aug 03, 2005 1:45 am    Post subject: Reply with quote

I would suggest refreshing on general C first, and if you are ok on that, then just look over the PSPSDK samples and includes... I just started learning C for psp programming, and as soon as I picked up the general language stuff, the samples provided, and the help from users on the forum are more than enough to get you going. Good luck.

LiQuiD8d

p.s. I would like to see a few links of some good C tutorials hopefully, but I doubt that will happen as this is not a 'learn how to program' forum :)
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Aug 03, 2005 3:24 am    Post subject: Reply with quote

Learning C might be useful for low-level PSP programming or your daily work, but if you just want to program for PSP instead of learning how to setup a Unix built environment and how to use make etc., you should take a look at my Lua Player.
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed Aug 03, 2005 4:40 am    Post subject: Re: Good place to learn C that might be PSP friendly? Reply with quote

hexperience wrote:
Hi All,

I've been reading like mad, both to refresh my C and to learn both PS2 and PSP dev.

I would like to do some simple C graphics stuff on plain linux first. I have found lots of "how to program graphics for X Windows" info, but I was hoping someone might know of some material that might be a bit lower level.

For example, if I learn how to put pixels directly into a PC/Linux screen buffer, that would help me with PSP dev more than learning how to open an X window object right? I want to bridge the gap between helloworld.c and actually using screen buffers.

Any links would be most helpful.
Cheers


If you don't want to go to the PSP directly, you could always try deving for a stable emulator. There must be a few out there that are similar and support direct screen pixeling...
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Wed Aug 03, 2005 8:41 am    Post subject: Reply with quote

Or use SDL and other libs that have been ported to PSP. Stick to using joystick as an input and 480x272 as a resolution. Once you have your code written, you will find it is easy to port to PSP (having code also helps buy assistance).

Although the PSP port of SDL is not perfect, it currently supports all the standard stuff plus various image formats (eg png), audio formats (eg wav) and font rendering (ie ttf).

And it's also ported to Ps2.
Back to top
View user's profile Send private message
ReKleSS



Joined: 18 Jun 2005
Posts: 73
Location: Melbourne, Australia

PostPosted: Wed Aug 03, 2005 3:04 pm    Post subject: Reply with quote

For lower level graphics, look for SDL tutorials (2d SDL graphics are done directly to the framebuffer) and Denthor's Asphyxia tutorials, a bunch of classic files on all kinds of graphical weirdness. The Asphyxia stuff is up on gamedev.net.
-ReK
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group