fincs
417d20b505
Fix broken C3D_LightEnvShadowMode implementation
2017-02-14 19:40:40 +01:00
fincs
ac755aa3ec
Add some shadow-related texture functions:
...
- C3D_TexShadowParams: configure GPUREG_TEXUNIT0_SHADOW
- C3D_TexInitShadow: create shadow map texture
- C3D_TexInitShadowCube: as above, but for shadow cubemaps
2017-02-14 19:40:07 +01:00
fincs
82b9eea410
Refactor GPUREG_TEXUNIT_CONFIG state (in preparation of future changes)
2017-02-14 18:40:58 +01:00
fincs
73f4039a9c
Deprecate c3d/renderbuffer.h (use framebuffer or renderqueue instead)
2017-02-14 18:35:37 +01:00
fincs
a382eeed2b
Use framebuffers instead of renderbuffers in rendertargets, details:
...
- The color buffer is mandatory, and it can either be a simple buffer
(whose allocation lifetime managed automatically by citro3d), or be
linked to a texture
- The depth buffer is optional, and it can only be a simple buffer
- Added C3D_RenderTargetCreateFromTex
- Clear bits in C3D_RenderTargetSetClear now work properly
2017-02-14 18:34:14 +01:00
fincs
5c1d037fa2
Introduce framebuffer (light renderbuffer) infrastructure
2017-02-14 18:24:57 +01:00
fincs
15de0e300e
Add support for cube textures, see below:
...
- Added C3D_TexCube structure for holding pointers to all 6 faces
- C3D_TexLoadImage accepts face number and mipmap level
- C3D_TexGenerateMipmap accepts face number
- Added functions (C3D_Tex*GetImagePtr) for accessing image data
- Now using GX to copy texture data to VRAM instead of failing
- Moved texunit setup code to texture.c
2017-02-12 00:14:04 +01:00
fincs
6ec42ae8a1
Calculate total mipmap texture size with geometric series formula
2017-02-11 18:29:41 +01:00
fincs
0fd245b171
Begin overhauling texture API, see details:
...
- Now supports multilevel data (LOD) used for mipmapping
- Basic mipmap generation (currently only for RGBA8 and RGB8 textures)
- Texture type can now be specified (TODO: support cube textures)
- Border color can also be specified now
- More flexibility in texture initialization parameters
2017-02-09 20:07:37 +01:00
fincs
2a1dc2ba87
Added C3D_FragOpShadow()
2017-02-09 19:59:46 +01:00
fincs
73aea35120
Add bIsZBuffer parameter to C3D_DepthMap
2017-02-09 19:59:31 +01:00
fincs
7a55e4554a
Reset attribute configuration on shader program change
2017-02-09 19:58:05 +01:00
fincs
a91889f5ba
Added C3D_FrameRate() for controlling output framerate
2017-02-09 19:57:02 +01:00
Michael Theall
3ae31adab4
Add doxygen support
2017-02-09 19:45:33 +01:00
fincs
a28fff9391
Correct C3D_DrawElements with GPU_TRIANGLES
2017-01-29 21:44:12 +01:00
fincs
c666893b2e
Bump version for release
2017-01-16 16:45:09 +01:00
Thompson Lee
642545d2e2
Added Mtx_Add() and Mtx_Subtract(). ( #28 )
2016-09-12 00:23:21 +02:00
Thompson Lee
7960e832de
Added Mtx_Diagonal(). ( #27 )
2016-09-11 23:40:10 +02:00
Thompson Lee
b32275ee94
Squashing all commits from the previous pull requests. #21 , #22 , and #23 . ( #26 )
2016-08-30 21:18:37 +02:00
Thompson Lee
8a3982d625
Added Quat_FromPitchYawRoll() helper function. ( #25 )
...
Quickly converts pitch, yaw, and roll rotations to the Quaternion equivalent orientation, with optimized code.
2016-08-22 22:14:26 +02:00
Thompson Lee
ae0ce14c9d
Enhancement: Mtx_Inverse() returns a non-zero determinant if the matrix passed in can be inverted, otherwise returns zero if the matrix is singular/degenerative.
2016-08-05 01:02:59 -05:00
Michael Theall
0dcc009ae3
Add gcov integration to test suite
2016-08-05 00:33:59 -05:00
Michael Theall
24548b03d1
Fix Mtx_LookAt
2016-08-05 00:33:59 -05:00
Thompson Lee
59b0311f48
Minor Fixes series
...
- Added a missing @param[in].
- Added @mtheall 's Mtx_Multiply() enhancement.
2016-08-05 00:19:55 -05:00
mtheall
dc4d81eea9
More additions and enhancements to math code, see details ( #19 )
...
Added C3D_AngleFromDegrees
Added FVec4_PerspDivide
Added LH option for projections
2016-08-04 21:23:28 +02:00
Thompson Lee
dde8877f38
Left-handed and Right-handed Look-At Matrix functions ( #17 )
2016-08-04 12:43:33 +02:00
fincs
8481109e15
Fix swapped near/far in Mtx_Ortho(Tilt)
2016-08-04 12:22:04 +02:00
mtheall
766def30a3
Optimized matrix math ( #15 )
...
Added non-tilt projections
Added quaternions
Added test framework
Created logo
2016-08-04 11:33:18 +02:00
Michael Theall
7b511a809d
fix Mtx_Inverse
2016-08-03 00:52:42 -05:00
Thompson Lee
d7d5ba28a1
Added a Matrix Inverse Function ( #14 )
2016-07-31 13:20:36 +02:00
fincs
ab534333b2
Fix minor error in uniforms.c
2016-07-21 12:06:09 +02:00
fincs
6361febd3c
Correct drawing functions to take into account full geoshader support
2016-07-20 17:38:05 +02:00
fincs
a5d68c7557
Merge pull request #8 from Cruel/const
...
Make uniform matrix pointers const
2016-05-23 20:21:49 +02:00
Thomas Edvalson
b0b46b7133
Make uniform matrix pointers const
2016-05-23 13:43:48 -04:00
fincs
d0f8988237
Merge pull request #7 from Cruel/texture-formats
...
Add ETC1 and ETC1A4 texture support
2016-05-03 12:36:14 +02:00
Thomas Edvalson
909bfc9174
Add ETC1 and ETC1A4 texture support
2016-05-03 02:41:05 -04:00
fincs
2cc0a08268
Add missing texture formats to fmtSize ( fix #6 )
2016-04-04 00:10:06 +02:00
fincs
a37648f42f
Add renderqueue-safe versions of GX_DisplayTransfer/TextureCopy/MemoryFill
2016-03-26 00:30:43 +01:00
fincs
806bf123a3
C3D_RenderTargetSetClear: Allow modification when drawOk = false
2016-03-25 23:42:58 +01:00
fincs
5c4642cd22
Fix #5 (lut_RR never getting updated)
2016-03-25 23:42:15 +01:00
fincs
7d42b57289
Fix Mtx_RotateX/Z to use standard mathematical convention (positive=CCW)
2016-01-27 21:25:21 +01:00
fincs
1e9e8ead11
Fix integer and boolean uniforms
2016-01-24 01:45:39 +01:00
fincs
b276d8cec2
Fix APT suspend with renderqueues
2016-01-22 00:06:15 +01:00
fincs
ba8656044f
Fix Mtx_OrthoTilt: near/far were swapped
2016-01-20 16:06:46 +01:00
fincs
7e30059573
Add C3D_ImmDrawRestartPrim
2016-01-19 22:33:04 +01:00
fincs
184fad0623
Add C3D_GetCmdBufUsage
2016-01-19 22:32:55 +01:00
fincs
4e2075f378
Fix race condition in C3Di_RenderQueueExit
2016-01-16 12:52:13 +01:00
fincs
1358ca3e7c
Bump version to v1.1.0
2016-01-06 19:54:36 +01:00
fincs
39a71a5fbf
Implement render queue system
2016-01-05 17:30:05 +01:00
fincs
f74c7b19ed
Examples have been moved to https://github.com/devkitPro/3ds-examples
2015-12-24 12:42:45 +01:00