mirror of
https://github.com/joel16/gLib2D.git
synced 2024-11-27 03:50:47 +00:00
corrected sample build
This commit is contained in:
parent
5103de6450
commit
759d06128f
@ -3,26 +3,11 @@
|
||||
#include <pspkernel.h>
|
||||
#include <psprtc.h>
|
||||
#include "../../glib2d.h"
|
||||
#include "../callbacks.h"
|
||||
|
||||
PSP_MODULE_INFO("App",0,1,1);
|
||||
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
||||
|
||||
/* Callbacks */
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
return 0; }
|
||||
int CallbackThread(SceSize args, void *argp) {
|
||||
int cbid;
|
||||
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
sceKernelSleepThreadCB();
|
||||
return 0; }
|
||||
int SetupCallbacks() {
|
||||
int thid = 0;
|
||||
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
|
||||
if(thid >= 0) sceKernelStartThread(thid, 0, 0);
|
||||
return thid; }
|
||||
|
||||
pspTime time;
|
||||
|
||||
void drawBorder() // A circle.
|
||||
@ -93,7 +78,7 @@ void drawClockHands()
|
||||
|
||||
int main()
|
||||
{
|
||||
SetupCallbacks();
|
||||
callbacks_setup();
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
@ -3,29 +3,14 @@
|
||||
|
||||
#include <pspkernel.h>
|
||||
#include "../../glib2d.h"
|
||||
#include "../callbacks.h"
|
||||
|
||||
PSP_MODULE_INFO("App",0,1,1);
|
||||
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
||||
|
||||
/* Callbacks */
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
return 0; }
|
||||
int CallbackThread(SceSize args, void *argp) {
|
||||
int cbid;
|
||||
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
sceKernelSleepThreadCB();
|
||||
return 0; }
|
||||
int SetupCallbacks() {
|
||||
int thid = 0;
|
||||
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
|
||||
if(thid >= 0) sceKernelStartThread(thid, 0, 0);
|
||||
return thid; }
|
||||
|
||||
int main()
|
||||
{
|
||||
SetupCallbacks();
|
||||
callbacks_setup();
|
||||
int rot = 0;
|
||||
|
||||
while (1)
|
||||
|
@ -2,29 +2,14 @@
|
||||
|
||||
#include <pspkernel.h>
|
||||
#include "../../glib2d.h"
|
||||
#include "../callbacks.h"
|
||||
|
||||
PSP_MODULE_INFO("App",0,1,1);
|
||||
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
||||
|
||||
/* Callbacks */
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
return 0; }
|
||||
int CallbackThread(SceSize args, void *argp) {
|
||||
int cbid;
|
||||
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
sceKernelSleepThreadCB();
|
||||
return 0; }
|
||||
int SetupCallbacks() {
|
||||
int thid = 0;
|
||||
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
|
||||
if(thid >= 0) sceKernelStartThread(thid, 0, 0);
|
||||
return thid; }
|
||||
|
||||
int main()
|
||||
{
|
||||
SetupCallbacks();
|
||||
callbacks_setup();
|
||||
int rot = 0;
|
||||
|
||||
while (1)
|
||||
|
@ -4,29 +4,14 @@
|
||||
|
||||
#include <pspkernel.h>
|
||||
#include "../../glib2d.h"
|
||||
#include "../callbacks.h"
|
||||
|
||||
PSP_MODULE_INFO("App",0,1,1);
|
||||
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
||||
|
||||
/* Callbacks */
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
return 0; }
|
||||
int CallbackThread(SceSize args, void *argp) {
|
||||
int cbid;
|
||||
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
sceKernelSleepThreadCB();
|
||||
return 0; }
|
||||
int SetupCallbacks() {
|
||||
int thid = 0;
|
||||
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
|
||||
if(thid >= 0) sceKernelStartThread(thid, 0, 0);
|
||||
return thid; }
|
||||
|
||||
int main()
|
||||
{
|
||||
SetupCallbacks();
|
||||
callbacks_setup();
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
@ -3,32 +3,17 @@
|
||||
#include <pspkernel.h>
|
||||
#include <pspctrl.h>
|
||||
#include "../../glib2d.h"
|
||||
#include "../callbacks.h"
|
||||
|
||||
PSP_MODULE_INFO("App",0,1,1);
|
||||
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
||||
|
||||
/* Callbacks */
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
return 0; }
|
||||
int CallbackThread(SceSize args, void *argp) {
|
||||
int cbid;
|
||||
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
sceKernelSleepThreadCB();
|
||||
return 0; }
|
||||
int SetupCallbacks() {
|
||||
int thid = 0;
|
||||
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
|
||||
if(thid >= 0) sceKernelStartThread(thid, 0, 0);
|
||||
return thid; }
|
||||
|
||||
int main()
|
||||
{
|
||||
SetupCallbacks();
|
||||
callbacks_setup();
|
||||
|
||||
SceCtrlData pad;
|
||||
g2dImage* tex = g2dTexLoad("tex.png",G2D_SWIZZLE);
|
||||
g2dTexture* tex = g2dTexLoad("tex.png",G2D_SWIZZLE);
|
||||
int alpha = 255,
|
||||
x = G2D_SCR_W/2,
|
||||
y = G2D_SCR_H/2,
|
||||
|
@ -2,29 +2,14 @@
|
||||
|
||||
#include <pspkernel.h>
|
||||
#include "../../glib2d.h"
|
||||
#include "../callbacks.h"
|
||||
|
||||
PSP_MODULE_INFO("App",0,1,1);
|
||||
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
||||
|
||||
/* Callbacks */
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
return 0; }
|
||||
int CallbackThread(SceSize args, void *argp) {
|
||||
int cbid;
|
||||
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
sceKernelSleepThreadCB();
|
||||
return 0; }
|
||||
int SetupCallbacks() {
|
||||
int thid = 0;
|
||||
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
|
||||
if(thid >= 0) sceKernelStartThread(thid, 0, 0);
|
||||
return thid; }
|
||||
|
||||
int main()
|
||||
{
|
||||
SetupCallbacks();
|
||||
callbacks_setup();
|
||||
|
||||
int size = 42, x=0, y=0, dx=2, dy=2;
|
||||
|
||||
|
@ -4,29 +4,14 @@
|
||||
|
||||
#include <pspkernel.h>
|
||||
#include "../../glib2d.h"
|
||||
#include "../callbacks.h"
|
||||
|
||||
PSP_MODULE_INFO("App",0,1,1);
|
||||
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
||||
|
||||
/* Callbacks */
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
return 0; }
|
||||
int CallbackThread(SceSize args, void *argp) {
|
||||
int cbid;
|
||||
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
sceKernelSleepThreadCB();
|
||||
return 0; }
|
||||
int SetupCallbacks() {
|
||||
int thid = 0;
|
||||
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
|
||||
if(thid >= 0) sceKernelStartThread(thid, 0, 0);
|
||||
return thid; }
|
||||
|
||||
int main()
|
||||
{
|
||||
SetupCallbacks();
|
||||
callbacks_setup();
|
||||
int rot = 0, i, branches = 4;
|
||||
|
||||
while (1)
|
||||
|
Loading…
Reference in New Issue
Block a user