Commit Graph

276 Commits

Author SHA1 Message Date
Ray
04af83ff99 Improved pixel formats support
Review rlLoadTexture() function to make it simpler, now OpenGL texture
glInternalFormat, glFormat and glType are retrieved with new function
GetGlFormats()
2018-01-22 00:20:42 +01:00
Ray
8e0a277f7c Reviewed UWP branch integration 2018-01-19 12:02:15 +01:00
Ray
750323da53 Merge branch 'develop' into testing_uwp 2018-01-19 11:41:51 +01:00
Ray
727cb1819b Reviewed VS2015 projects
- Support OpenGL 1.1 if selected macro
- Corrected MSVC compiler issues with (void *) data
- Removed raylib.dll project
- Created DEBUG_DLL and RELEASE_DLL configurations
2018-01-17 14:21:23 +01:00
Ray
dd3b3dbadb Redesigned rlLoadTexture()
- Added support for mipmap levels loading
- Removed internal function LoadTextureCompressed(), not required any
more...
2018-01-16 00:00:05 +01:00
Ray
c37d2d448d Corrected issue with matrices
Matrix stack system should be reviewed but, in the meantime,
currentMatrix should be reseted in order of 3d to work
2018-01-08 01:03:04 +01:00
Ray
4dcc02ff1e Launch draw call if buffer limits reached
Note that this solution is a temporal patch, not properly tested and
prone to fail, specially if matrix are pushed into the stack...
2018-01-07 23:54:11 +01:00
b97134c3e1 Review float pixel format textures support 2018-01-06 18:17:38 +01:00
7caa3201d5 Improved pixel formats support
- Renamed enum TextureFormat to PixelFormat for consistency
- Added support for pixel format UNCOMPRESSED_R32
- Using GetPixelDataSize() where required
2018-01-06 13:43:48 +01:00
e7cf03b1e4 Minor tweaks 2017-12-28 19:27:02 +01:00
b19e155b34 Support UNCOMPRESSED_R32G32B32A32 texture format 2017-12-28 17:58:37 +01:00
e8bb53ed35 Corrected issue on OpenGL ES compilation 2017-12-20 12:35:12 +01:00
53ad53d051 Manually review previous PR 2017-12-15 13:44:31 +01:00
217917530b fix for eventmarker missed in first cl 2017-12-14 11:51:17 +01:00
07b522c113 make matrix stack work closer to old opengl implementation 2017-12-14 11:46:38 +01:00
0e18b14605 added debug-event-markers for opengl so that you're able to set markers for renderdoc or other gpu debuggers what your program is currently doing 2017-12-14 11:44:48 +01:00
963551ee6e added possibility to get modelview matrix from rlgl to be able to send it to shaders 2017-12-14 11:43:06 +01:00
Ray
2388cbc3cd Corrected crash on shader loading
If shader file could not be found on loading it crashed, instead added
fallback to default shader!
2017-12-13 20:10:13 +01:00
Ray
25ceec9b8f Corrected default textures locations
By default, we look for texture1 for LOC_MAP_SPECULAR and texture2 for
LOC_MAP_NORMAL
2017-11-22 14:56:45 +01:00
02dd4d32b5 Allow custom distortion shader - IN PROGRESS - 2017-11-12 11:00:28 +01:00
09228752ce Review default shaders usage on loading 2017-11-12 10:33:44 +01:00
b6b58991e6 Working on UWP support
Support Universal Windows Platform (UWP):
- Windows 10 App
- Windows Phone
- Xbox One
2017-11-10 12:37:53 +01:00
7ef604fbf5 Store the default shaders 2017-11-09 20:47:22 +01:00
2f024dbfef Corrected possible issue on FBO creation
USE_DEPTH_RENDERBUFFER on OpenGL 2.1
2017-11-06 13:58:11 +01:00
81518ccd13 Corrected issue with shader locations init
On RPI, after latest drivers update, models were not rendered properly
cause of that...
2017-11-06 13:41:13 +01:00
879c2f484b SetShaderValue take const pointer 2017-11-05 21:57:29 +01:00
Ray
aa6a1b4283 Corrected issue with missing defines 2017-11-05 09:58:25 +01:00
Ray
d43af4918b Improve textures support for OpenGL 2.1 2017-11-04 16:57:46 +01:00
415e7e972c Review some issues, view description
- Review RPI compilation (core_drop_files not supported)
- Review ImageFormat(), some issues
- GetTextureData() reviewed for RPI
2017-10-30 13:51:46 +01:00
ab01cd45bc Review rlReadTexturePixels()
Improve second option to retrieve texture data from fbo...

Still requires some testing...
2017-10-25 12:46:26 +02:00
31c8c86d8e Comment tweak...
...while reviewing GetTextureData() functionality on OpenGL ES 2.0
2017-10-25 12:33:44 +02:00
7057d08369 Review VR functionality
To be more generic and configurable
2017-10-17 13:32:15 +02:00
412c52499a Reverted change that breaks 3D drawing
It should be reviewed more carefully...
2017-10-04 12:13:32 +02:00
ddea9d68bf Review VR simulator
Requires some work, distortion shader could be move out of raylib to
example code...
2017-10-04 12:11:40 +02:00
Ray
2068037417 Code tweak 2017-09-26 00:51:31 +02:00
Ray
ff9b486ebe Removed matrix resetting...
to emulate OpenGL funcionality
2017-09-22 13:53:29 +02:00
Ray
1d91a46008 Corrected out-of-bounds array issue 2017-09-13 22:23:24 +02:00
0fc1323c80 Renamed modelviewprojection matrix 2017-08-25 01:43:55 +02:00
6369b47f11 Force OpenGL 3.3 on OSX if selected OpenGL 2.1 2017-08-04 19:18:55 +02:00
eeca607506 Review transforms to match OpenGL 1.1 2017-08-04 18:34:51 +02:00
Ray
2a263f7b5f Corrected compilation on OpenGL ES 2.0 2017-07-28 19:59:04 +02:00
a766e2c480 Updated Vector math to new naming 2017-07-22 22:15:50 +02:00
cbb134946c Corrected GetMouseRay() and rlUnproject()
Now it works great with reviewed maths
2017-07-22 11:02:40 +02:00
00d2768bc9 Corrected bug on MatrixPerspective()
Some other tweaks...
2017-07-22 10:35:49 +02:00
e52032f646 Complete review of raymath
Now it should be coherent with OpenGL math standards
2017-07-21 17:19:28 +02:00
38d9fcb08e Moved some functions to raymath
Exposed some raymath useful functions to raylib API
2017-07-21 15:25:35 +02:00
980d9d4cd4 rlgl usable as standalone library 2017-07-21 10:42:57 +02:00
2679c4ae9b Review mesh loading and textures generation 2017-07-21 09:34:09 +02:00
63fd96354e Simplify a bit GenTexture*() functions
Still shader dependant, locations set should be moved out
2017-07-20 14:27:59 +02:00
52cd5c6324 Corrected some issues
Corrected compilation for OpenGL 1.1
Review mesh data uploading to GPU
2017-07-20 12:26:25 +02:00