Advertising (This ad goes away for registered users. You can Login or Register)

Henkaku / PSDK3 - Basic functions ? Image, control, debug

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Locked
Adrien
Posts: 16
Joined: Sun Jun 28, 2015 7:44 am

Henkaku / PSDK3 - Basic functions ? Image, control, debug

Post by Adrien »

Hi dear fellows,

Henkaku and PSDK3 are great but It is still difficult to find helpful code samples.
I did my research, but it led me nowhere, besides these of course https://github.com/vitasdk/samples.

- Does anybody know the command to simply show an image (preferably in C) ?
- And...erm...Idem for input and sound, maybe ? :roll:

- Is there a way to test our homebrews on PC (like ppsspp for the eboot files) or sending it to VITA is the only solution ?



Thank you !
Advertising
Adrien
Posts: 16
Joined: Sun Jun 28, 2015 7:44 am

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by Adrien »

So how to draw things and stuff on my dear VITA ?
There we go: https://github.com/xerpi/libvita2d

No pencils recquired.


Self response ? I don't care.
As long as it may help someone ;)
Advertising
crait
Posts: 17
Joined: Mon Aug 08, 2016 7:28 pm
Location: Dallas, Texas
Contact:

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by crait »

Hey, Adrien!

I had a similar question here: viewtopic.php?f=54&t=46435

Turns out, I was having problems with my SDK because of the way I installed it all. So, what I did was re-install the SDK using an all-in-one installer posted on the front page: http://wololo.net/2016/08/10/setup-vita-sdk-windows/

Once I did that, I was able to use xerpi's libvita2d library. His library usually includes a sample that you can download from here: https://github.com/xerpi/libvita2d/tree/master/sample

Once you get the SDK running right, you should be able to take a look at that same and see how images are loaded and displayed. It even includes code for pushing buttons! Overall, it's very straight-forward, but let us know if you have more questions.
Adrien
Posts: 16
Joined: Sun Jun 28, 2015 7:44 am

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by Adrien »

You seem very active on this forum, so thank you for the time you spend helping everyone :mrgreen:
crait
Posts: 17
Joined: Mon Aug 08, 2016 7:28 pm
Location: Dallas, Texas
Contact:

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by crait »

Thanks, a lot! But I'm new, too. :P I've lurked forever, it seems, but until recently, I had no reason to post. If I see some issues people are having, I'll be sure to help as I used to always come to PSP sites to ask for help. :P
Adrien
Posts: 16
Joined: Sun Jun 28, 2015 7:44 am

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by Adrien »

How to print a text including a variable ?

When "vita2d_pgf_draw_text" is not enough, use:


#include <vita2d.h>
pgf=vita2d_load_default_pgf();
vita2d_pgf_draw_textf(pgf 20, 20, 255,0,0, 255, "%f", ma_variable);


I know, it may be trivial to many of you, but not for me ;)
Davenor
Posts: 16
Joined: Sat Mar 14, 2015 1:31 am

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by Davenor »

Adrien wrote:How to print a text including a variable ?

When "vita2d_pgf_draw_text" is not enough, use:


#include <vita2d.h>
pgf=vita2d_load_default_pgf();
vita2d_pgf_draw_textf(pgf 20, 20, 255,0,0, 255, "%f", ma_variable);


I know, it may be trivial to many of you, but not for me ;)
Oh un français :P
Adrien
Posts: 16
Joined: Sun Jun 28, 2015 7:44 am

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by Adrien »

:o Shout, you blew my cover. Comment ça va ?
VITA brings all nations together or som'thing like that.


Did anyone already found out how to make your VITA play any sound ?


We may have a lead with XERPI emulators (headers derived from PSP, as everything else you may say) but gosh, it's hard to understand. https://github.com/xerpi/realboy-vita/b ... ta_audio.h
Drakon
Posts: 97
Joined: Thu Mar 17, 2011 8:17 pm
Location: Poland
Contact:

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by Drakon »

Adrien wrote::o Shout, you blew my cover. Comment ça va ?
VITA brings all nations together or som'thing like that.


Did anyone already found out how to make your VITA play any sound ?


We may have a lead with XERPI emulators (headers derived from PSP, as everything else you may say) but gosh, it's hard to understand. https://github.com/xerpi/realboy-vita/b ... ta_audio.h
You can check my older example here - https://github.com/DrakonPL/VitaSound
Rinnegatamante have very good audio system - https://github.com/Rinnegatamante/lpp-vita (source/include/audiodec/)
Adrien
Posts: 16
Joined: Sun Jun 28, 2015 7:44 am

Re: Henkaku / PSDK3 - Basic functions ? Image, control, debu

Post by Adrien »

YES !
Thank you very much Drakon, I'll try this right away :mrgreen:

Even on VITA, no RTS should be played without Klepacki's rock.

Come on, let's coooode: https://www.youtube.com/watch?v=Z88BEP_VgKw
Locked

Return to “Programming and Security”