Ray
822c2ddad5
Some defines tweaks for consistency
2017-05-08 02:47:44 +02:00
Ray
39732d04ec
Comments review
2017-05-08 00:55:26 +02:00
Ray
d593bd0081
Some code tweaks
2017-04-30 13:03:31 +02:00
raysan5
247da006ae
Rename parameter
2017-04-22 22:35:04 +02:00
Ray
59652c75b4
Review some comments
2017-03-20 20:34:44 +01:00
raysan5
5d1f661661
Remove Oculus support from code
...
Moved to custom example, now raylib only supports simulated VR
rendering.
Oculus code was too device dependant... waiting for OpenXR.
2017-03-14 01:05:22 +01:00
Ray San
836c1636a2
Remove lighting system from rlgl standalone header
2017-02-08 20:02:40 +01:00
Ray
f164ec80d6
Upload wave collector - GGJ17 game
2017-01-22 15:31:56 +01:00
raysan5
852f3d4fd0
Review comments and formatting
2016-12-25 02:01:13 +01:00
Ray
f1bcfc1352
Corrected bug on GenTextureMipmaps()
...
texture.mipmaps value needs to be updated, so, texture must be passed by
reference instead of by value
2016-11-22 12:14:55 +01:00
raysan5
bee283b12b
Some tweaks around
2016-11-17 12:55:30 +01:00
raysan5
6d1b712a96
Reviewed modules comments
2016-11-16 18:46:13 +01:00
raysan5
9d3ad52160
Removed byte typedef
2016-11-15 19:15:25 +01:00
raysan5
988d39029f
Support textures filtering
2016-10-29 22:17:19 +02:00
raysan5
4ff98f34bb
Function to set texture parameters -IN PROGRESS-
2016-10-27 13:40:48 +02:00
raysan5
d5e0f4e84e
Added notes on vr tracking -> camera update
2016-10-17 17:02:33 +02:00
raysan5
5fecf5c088
Review UpdateVrTracking() and rlglLoadRenderTexture()
2016-10-10 19:42:59 +02:00
raysan5
36f20376e6
Redesigned lighting shader system
2016-09-05 20:15:21 +02:00
raysan5
959a228815
Removed useless spacing
2016-08-16 11:09:55 +02:00
raysan5
16ac468bdb
Remove functions from user exposure
2016-08-06 19:30:41 +02:00
raysan5
5ff9811ea8
Some code tweaks
2016-07-18 17:06:33 +02:00
raysan5
55b9a2479a
Expose Oculus Rift functionality directly
2016-07-16 22:41:13 +02:00
raysan5
bfb5ffedda
Added rlgl standalone sample
2016-07-16 19:25:15 +02:00
raysan5
7cefbd8a94
Updated lighting system...
...
...to avoid dynamic conditions on for loop (lightsCount) on standard
shader, it seems GLSL 100 doesn't support that feature... on some GPUs
like RaspberryPi...
2016-07-06 20:33:46 +02:00
Ray
bc80174357
VR Functions renaming (for generic HMD device)
...
Stereo rendering has been moved again to Begin3dMode() and End3dMode(),
it has some limitations but makes more sense...
2016-07-06 00:54:38 +02:00
Ray
ee72654b55
Redesigned stereo rendering mechanism
...
Now it's easier for the user! Just init Oculus device and get stereo
rendering!
2016-07-04 01:29:23 +02:00
raysan5
9127b5a57d
Enable/Disable VR experience
2016-06-26 15:36:12 +02:00
raysan5
8652e644dd
Corrected bug on stereo rendering
2016-06-26 14:13:11 +02:00
raysan5
71ab202295
Removed rlglInitGraphics(), integrated into rlglInit()
...
Redesigned rlgl usage:
- rlViewport() must be called by user
- Internal projection/modelview matrices must be setup by user
2016-06-25 23:28:50 +02:00
raysan5
03d9583b94
Add oculus simulator (in case device is not detected)
2016-06-21 13:49:13 +02:00
Ray
6062201e8f
Simplify Oculus example...
...
...to align it with standard raylib code. Final goal would be having the
same code work for every platform with no changes...
2016-06-21 08:59:29 +02:00
raysan5
b01f5ff6a7
Starting work on VR simulator support
...
If Oculus device is not available or not initialized correctly,
simulated VR view is generated using stereo-rendering and distortion
2016-06-19 19:12:47 +02:00
Ray
24c9b1f717
Improving Oculus Rift example...
...
Under design... looking for the easiest and most comprehensive way for
the user to use VR...
2016-06-17 13:54:45 +02:00
Ray
4df7a0f2f8
Added support for OpenGL 2.1
2016-06-16 20:25:50 +02:00
raysan5
3ce0228206
Move Oculus Rift support to rlgl module
2016-06-14 17:16:20 +02:00
raysan5
c25b4cdc69
Move OpenGL extensions loading to rlgl
2016-06-14 15:42:04 +02:00
Ray
ee795150fa
Updated some code
2016-06-07 23:44:53 +02:00
raysan5
0bc71d84f8
Added functions to customize internal matrix
...
Internal modelview and projection matrices can be replaced before
drawing.
2016-06-02 20:23:09 +02:00
Ray
17878550b1
Review heades usage
...
This is a first step toward a bigger project. Some modules could be
ported to header-only to be used as standalone.
2016-06-02 01:26:44 +02:00
raysan5
d17a0cee1a
Review text formatting (spacing, tabs...)
2016-05-31 19:12:37 +02:00
raysan5
302ec438dd
Removed colTint, tint color is colDiffuse
...
Tint color could be applied to colDiffuse... but what's the best way?
Replace it? Multiply by? A point to think about...
2016-05-31 18:15:53 +02:00
raysan5
cac2a66deb
Improved library consistency
...
Functions renamed to improve library consistency
2016-05-31 17:11:02 +02:00
victorfisac
b0a0c5d431
Added tint color attribute to material data type
...
It tints all fragments, ignores lighting. Useful for some features like
feedback (damage color, ...).
2016-05-30 19:55:13 +02:00
victorfisac
f2d61d4043
Remove normal depth
...
Scaling normal depth (y axis) makes disappear the specular of
fragments... So I think it can be removed, it is not a very
useful/important attribute.
2016-05-30 19:43:35 +02:00
victorfisac
2e26ce235d
Add Draw3DCircle function and update raylib and rlgl header
...
Draw3DCircle is useful to draw point lights radius.
2016-05-30 19:18:11 +02:00
raysan5
ea5b00528b
Improved render to texture
...
Support render texture size different than screen size
2016-05-29 11:49:13 +02:00
raysan5
d53b6f4381
Renamed shader variables (more generic names)
...
Now shader maps use a generic naming convention for any kind of texture
maps (not only diffuse, normal or specular). Useful for custom shaders.
2016-05-25 16:19:57 +02:00
victorfisac
c320a21f2b
Add standard lighting (2/3)
...
- 3 light types added (point, directional, spot).
- DrawLights() function added using line shapes.
- Standard lighting example added.
- Removed useless struct variables from material and light.
- Fixed light attributes dynamic locations errors.
- Standard vertex and fragment shaders temporally added until rewrite it
as char pointers in rlgl.
TODO:
- Add normal and specular maps calculations in standard shader.
- Add control structs to handle which attributes needs to be calculated
(textures, specular...).
- Adapt standard shader to version 110.
- Rewrite standard shader as char pointers in rlgl.
2016-05-21 18:16:39 +02:00
raysan5
dcf5f45f68
Add lighting system -IN PROGRESS-
...
Improved materials
2016-05-20 12:28:07 +02:00
raysan5
7d1d9ff143
Support DYNAMIC_DRAW mesh loading
2016-05-20 09:36:02 +02:00
raysan5
037edbaa13
Reorganize data for consistency
2016-05-18 13:22:14 +02:00
raysan5
075f51e0a3
Simplified internal (default) dynamic buffers
2016-05-12 12:20:23 +02:00
raysan5
4d78d27bd9
Updated structs Mesh and Shader
2016-05-11 19:25:51 +02:00
raysan5
7ab008878a
Library redesign to accomodate materials system
2016-05-07 18:07:15 +02:00
raysan5
8301980ba8
Clean up and consistency review
...
- Renamed some functions for consistency (default buffers)
- Removed mystrdup() function (implemented inline)
- Renamed TextFileRead() to ReadTextFile()
2016-05-03 19:20:25 +02:00
raysan5
06a8d7eb06
Remove old postprocessing system
2016-04-01 10:39:33 +02:00
raysan5
66b096d978
Added support for render to texture (use RenderTexture2D)
...
Now it's possible to render to texture, old postprocessing system will
be removed on next raylib version.
2016-03-30 20:09:16 +02:00
raysan5
5e45c3c824
Redesign to work as standalone
...
Redesigned to work as standalone and support fordward-compatible context
(shaders review)
2016-03-20 13:39:27 +01:00
Ray
e2ba22ec59
Improved 2D-3D drawing
...
Depth test disabled for 2D and only used on 3D; consequently LINES vs
TRIANGLES vs QUADS buffers drawing order maters... but blending also
works ok.
2016-03-17 13:51:48 +01:00
raysan5
c9d22c7a14
Redesign to use Material type -IN PROGRESS-
...
Requires Shader access functions review
2016-03-06 02:05:16 +01:00
Ray
df5c64d0be
Functions parameters reorganize: Axis and Angle
...
sin(), cos() functions cached and replaced by float c99 versions sinf(),
cos()
2016-02-02 18:41:01 +01:00
raysan5
d0ff78e7f4
Move Light struct to example
2016-01-25 13:39:23 +01:00
raysan5
68ba34c17b
Updated struct types
2016-01-21 01:03:43 +01:00
raysan5
efa1c96d19
Adapted raymath as single header library
...
Added support for single header implementation and also inline functions
support
2016-01-20 18:20:05 +01:00
raysan5
fd05d3e353
Rename VertexData struct to Mesh
...
Reviewed vertex type variables
2016-01-18 13:36:18 +01:00
raysan5
fb6ef2c2f4
Vertex shaders optimization
2016-01-13 17:13:28 +01:00
raysan5
95da97fa74
Fixed bug: rlglGenerateMipmaps()
2016-01-04 15:09:44 +01:00
victorfisac
4db2da9185
Added new matrix location points and extra functions
...
- New model and view transformation matrix added, useful for shaders.
Modelview matrix not deleted to keep opengl 1.1 pipeline compatibility.
- New extra function added DrawModelWiresEx() to set a rotation and
scale transformations to a wire model drawing.
- Other writing and little audio.c bug fixed.
2015-12-21 16:42:13 +01:00
Ray
88e1fd9530
Added texture retrieval support on OpenGL ES 2.0
...
Updated functions:
Image GetTextureData(Texture2D texture);
void *rlglReadTexturePixels(Texture2D texture);
2015-11-05 12:32:47 +01:00
Ray
76024b5036
Added some texture functionality (view details)
...
LoadTextureEx() - Simplified parameters
UpdateTexture() - Added, allows updating GPU texture data
2015-11-04 18:33:46 +01:00
raysan5
11a8dacb0f
Multiple code changes:
...
- Renamed function rlEnableFBO() -> rlEnablePostproFBO()
- Defined struct FBO
- Moved FBO creation to function: rlglLoadFBO()
- Reviewed rlglReadTexturePixels(), trying to support OpenGL ES -IN
PROGRESS-
2015-10-06 17:25:27 +02:00
raysan5
aa982f80f5
Reviewed some comments
2015-08-30 17:44:47 +02:00
raysan5
055d8927cc
Small code tweaks
2015-08-29 20:20:28 +02:00
raysan5
b8b0247043
Added function SetBlendMode()
...
Useful to enable additive blend mode for particles
2015-08-07 17:24:28 +02:00
Ray
ba640598e5
Reviewed for standalone usage
...
Requires raymath as standalone and GLEW
2015-08-05 19:18:40 +02:00
raysan5
7834a4e2fc
Replaced old mail by twitter user
2015-07-29 21:43:30 +02:00
raysan5
552033da27
Move shaders functions to module rlgl
...
Shader functionality owns to rlgl, not core module
2015-07-13 18:20:16 +02:00
raysan5
c944d62374
Improved mipmaps support and image loading
2015-07-05 18:21:01 +02:00
raysan5
eae98e1c34
Big batch of changes, check description:
...
- Camera system moved to a separate module [camera.c]
- WIP: Added customization functions for camera controls
- Added custom shaders support on batch drawing
- Complete redesign of textures module to support multiple texture
formats (compressed and uncompressed)
2015-05-04 23:46:31 +02:00
raysan5
7d2318c167
WIP on shaders and textures
...
Moved functions: LoadShader(), UnloadShader()
Add support for PVR textures compressed/uncompressed
WIP: Detect available extensions for compressed textures
2015-04-13 20:15:28 +02:00
raysan5
a632a04a30
Big batch of changes! Check description:
...
Support multiple texture formats (uncompressed and compressed)
Postprocessing shaders support
Model struct redefined and improved
Extended loading functions for Textures and Models
Simplified functions: DrawPlane(), DrawQuad()
Deleted functions: DrawPlaneEx(), DrawGizmoEx()
Now Text module only depends on Textures module
Shapes: Reviewed functions to low lines/triangles usage
Removed useless tabs and spaces around code
2015-04-06 14:02:29 +02:00
Marc Palau
3cad094edd
Changes integration (some WIP, view details)
...
Corrected GetMouseWheelMove()
Corrected camera system
Reviewed cubicmap resolution (collision detection)
Added QuaternionTransform()
WIP: Raycast system (not working)
WIP: Reviewing axis-angle rotations...
2015-03-02 20:52:58 +01:00
raysan5
c062f8d4fe
Redesign shader system and more
...
Shader system has been completely redesigned
Added support for multiple texture color modes
2015-03-01 16:00:52 +01:00
raysan5
42c92e4f2e
Add support for custom shaders
...
Custom shaders for models
Postprocessig on FBO (in progress)
Some useless spaces removed
2015-02-02 00:57:08 +01:00
raysan5
8847602061
Examples review...
2015-01-02 20:58:06 +01:00
raysan5
905b6ec53d
Added full support for HTML5 (emscripten)
...
Corrected some bugs on the way...
Automatically convert textures to POT on RPI and WEB
2014-12-31 18:03:32 +01:00
raysan5
cfa60ab7e6
Added support for emscripten and more
...
Added PLATFORM_WEB support (emscripten-webgl)
[audio] Added LoadSoundFromWave()
[textures] Added LoadTextureFromImage() to replace CreateTexture()
Some TraceLogs edited...
2014-12-15 01:08:30 +01:00
raysan5
7375d0460a
Updated stb headers
2014-11-23 21:58:17 +01:00
raysan5
9d27bba23f
Small Fixes Update (1.2.1)
...
View CHANGELOG for description on small fixes and add-ons
2014-10-17 21:11:58 +02:00
raysan5
fc6081fe70
raylib 1.2
...
This is a huge update. Check CHANGELOG for details
2014-09-16 22:51:31 +02:00
raysan5
c56ef738ed
Explicit define of functions prototypes
...
No-parameters functions use the prototype style FunctionName(void);
2014-09-03 17:06:10 +02:00
raysan5
d2b98fbb5c
Removed useless spaces
2014-09-03 16:51:28 +02:00
raysan5
56a7979750
Corrected bugs...
...
Set default raylib to use OpenGL 1.1 (compatibility issues on ATI cards)
2014-07-23 19:50:06 +02:00
raysan5
0b03431c95
Update to version 1.1.1
...
Check CHANGELOG for a detailed list of changes
2014-07-23 00:06:24 +02:00
raysan5
8e186e840c
Updated some comments
2014-06-09 16:33:53 +02:00
raysan5
f06a15ac8b
raylib 1.1
...
View CHANGELOG for a detailed list of changes
2014-04-19 16:36:49 +02:00
raysan5
e6b82cb111
Lots of changes, most of them under testing-review
...
Added a Tracing/Log system
Added OGG stream music support (DOESN'T WORK)
Added Compressed textures support
* This update is probably very buggy...
2014-04-09 20:25:26 +02:00
raysan5
c04f37d0f5
Adapt multiple functions to rlgl
...
Nearly a complete rework of Models module
Some teaks on multiple functions
2014-04-04 20:11:57 +02:00
raysan5
96f520ff6d
Road to raylib 1.1 - Testing rlgl
2014-03-25 12:40:35 +01:00