smea
f1633c7c5f
Merge branch 'master' into refactor
2014-10-26 13:03:49 -07:00
smea
e115853aee
added c-stick, ZL and ZR support via ir:rst
2014-10-25 18:30:19 -07:00
smea
40d35ee420
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
2014-10-23 22:12:08 -07:00
smea
77b421aa6b
nothing important
2014-10-23 22:11:50 -07:00
smea
4851ff3587
Merge pull request #14 from StapleButter/refactor
...
Alphablending, color logic op, alphatest, multitexturing, and more stability
2014-10-23 09:07:49 -07:00
StapleButter
af31a7c861
* add code for alphablending, color logic op, alpha test and multitexturing.
...
* add GPU_FinishDrawing() to be called after a batch of GPU_DrawArray() calls if you're done drawing or if you intend to change the GPU configuration before drawing more. Also fix GPU_Finalize(). With those changes, the GPU no longer freezes if you call GPU_DrawArray() an even number of times.
* fix GPU_SetViewport() to allow color buffer reading, so blending and logicop work as expected.
2014-10-23 17:56:56 +02:00
StapleButter
1f413a7d44
Add synchronization mechanism for entering sleep mode.
...
When the APT status is APP_PREPARE_SLEEPMODE, the application main thread should call aptSignalReadyForSleep() to signal that it is ready to enter sleep mode, and then call aptWaitStatusEvent() as usual.
Example code:
APP_STATUS status;
while ((status = aptGetStatus()) != APP_EXITING)
{
if(status==APP_RUNNING)
{
// application logic here
}
else if(status == APP_SUSPENDING)
{
aptReturnToMenu();
}
else if(status == APP_PREPARE_SLEEPMODE)
{
aptSignalReadyForSleep();
aptWaitStatusEvent();
}
}
This maybe isn't the proper/recommended way to do sleep mode, but I tested it multiple times and it always worked reliably.
(note: maybe the sample code above will not work if GPU drawing is done in a separate thread, haven't tested that)
2014-09-18 22:09:15 +02:00
StapleButter
6431810185
Merge pull request #1 from smealum/refactor
...
Refactor
2014-09-18 20:59:46 +02:00
fincs
27be99a793
Add proper linear heap allocator
2014-09-17 00:22:30 +02:00
fincs
2c589cd2ef
linearAlloc: use 16-byte alignment
2014-09-16 22:24:26 +02:00
fincs
e26017a75c
Merge branch 'refactor' of https://github.com/StapleButter/ctrulib into refactor
2014-09-13 18:00:23 +02:00
StapleButter
8b27dbe623
* Make the GSP event handler signal events in the right order (essential for proper PICA200 sync)
...
* Add some comments about the GSP events (based on my observations, may not be right)
2014-09-13 17:01:20 +02:00
plutoo
b832ed5179
Merge pull request #10 from StapleButter/refactor
...
Fix FS init.
2014-09-11 21:04:35 +02:00
StapleButter
ad08977e37
Fix FS init.
2014-09-11 21:02:56 +02:00
yellows8
a9f4b3402b
Fixed broken CSND_playsound() code for looping(use vaddr1 for that instead of vaddr0, and adjust the size).
2014-09-06 17:49:48 -04:00
plutoo
449ead1141
os: Added osGetTime().
2014-09-06 21:07:26 +02:00
yellows8
63c3e5af0d
Fixed mic example README.
2014-09-03 14:38:47 -04:00
yellows8
aa77f9b1e2
Added code for using the microphone and an example app for it.
2014-09-03 14:36:05 -04:00
fincs
38a442ae10
Merge pull request #7 from profi200/refactor
...
refactor
2014-09-01 20:21:55 +02:00
profi200
a2f32f91c1
Now the same as in master
2014-09-01 15:51:53 +02:00
profi200
3d34e123ee
Added functions for sysCore usage
2014-09-01 15:49:32 +02:00
yellows8
62f26e8760
Improved HID code, and added Accelerometer/Gyroscope support.
2014-08-30 20:41:09 -04:00
yellows8
9425edc406
Added HID event code, based on the GSP event code. Added event id check in gspWaitForEvent().
2014-08-29 16:19:58 -04:00
smea
2a1c7c8ea9
some GSP and GPU fixes
2014-08-28 22:53:45 -07:00
fincs
b41f1ca796
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
2014-08-28 00:02:56 +02:00
fincs
0275d6a924
initSystem: fix global ctor/dtor code
2014-08-28 00:00:53 +02:00
fincs
125398a52f
Refactor linear heap code (formerly known as GSP heap)
2014-08-27 23:44:38 +02:00
yellows8
f37a7b004f
Added checks for the array index code in hid.c.
2014-08-27 17:42:53 -04:00
fincs
16544492a2
Fix KEY_CRIGHT/CLEFT
2014-08-27 12:03:25 +02:00
smea
335acee5d5
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
...
Conflicts:
libctru/include/3ds/types.h
2014-08-26 23:13:36 -07:00
smea
9e78466af8
added stdlibs for size_t
2014-08-26 23:12:33 -07:00
mtheall
43661f8263
Add FSUSER_GetSdmcArchiveResource().
2014-08-26 19:01:00 -05:00
mtheall
a2911e4883
Add word 2 to response for FSUSER_IsSdmcDetected() and FSUSER_IsSdmcWritable().
2014-08-26 17:54:52 -05:00
mtheall
2eadd6d0b2
FIX DERP.
2014-08-26 17:43:34 -05:00
fincs
9b370c7eff
Reorganize includes
2014-08-26 23:18:14 +02:00
mtheall
a253b10b24
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
2014-08-26 15:58:24 -05:00
mtheall
cad12973c8
Add FSUSER_IsSdmcDetected() and FSUSER_IsSdmcWritable().
2014-08-26 15:58:18 -05:00
fincs
8b9666ac40
3ds/types.h: #include <stddef.h>
2014-08-26 22:56:38 +02:00
fincs
589c59fab7
Move 3ds.h to root, add C++ guard, use #pragma once
2014-08-26 22:53:00 +02:00
fincs
9e89151f22
Add .gitignore to examples
2014-08-26 22:51:50 +02:00
smea
45c7f027d8
gpu: shader fix
2014-08-25 23:44:52 -07:00
smea
8e86af967a
added Makefile rule to compile vsh shader code to gpu example (fincs, can you see if you can improve it ?)
2014-08-25 23:26:36 -07:00
smea
0aff9c6902
so sick of all these includes
2014-08-25 22:55:12 -07:00
smea
19071d7fb1
moved some things around
2014-08-25 22:38:37 -07:00
smea
ca0cecec57
cleaned up gpu example code
2014-08-25 22:27:28 -07:00
smea
d30d5283c6
GSP/GFX stuff
2014-08-25 21:48:00 -07:00
smea
4f397abd63
added WIP GPU example code
2014-08-25 21:47:50 -07:00
smea
b9d6ffe8f2
oops, looks like i was editing deprecated files
2014-08-25 21:35:53 -07:00
smea
d287719900
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
...
Conflicts:
libctru/source/gfx.c
2014-08-25 21:32:00 -07:00
smea
47284dcd34
GPU stuff
2014-08-25 21:31:12 -07:00