Ray
99ee26b001
Review const char *
2016-06-08 22:52:54 +02:00
Ray
ee795150fa
Updated some code
2016-06-07 23:44:53 +02:00
raysan5
058af472ea
Converted GLAD to header only
2016-06-07 18:57:20 +02:00
Ray
9281e477eb
Embed standard shader into raylib
2016-06-07 00:32:45 +02:00
Ray
1bcf500eca
Review fallback mechanism
2016-06-06 23:19:40 +02:00
Ray
522af9f477
Fallback to default shader
2016-06-06 23:16:14 +02:00
Ray
29d505c98e
Reorganize external libraries - BREAKING CHANGE -
...
Moved all external libraries used by raylib to external folder inside
raylib src. Makefile has already been update and also the different
includes in raylib modules.
2016-06-06 14:34:43 +02:00
Ray
72eb2632cc
Corrected compilation bug on OpenGL 1.1
2016-06-05 23:51:41 +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
raysan5
c286bea8e1
Remove GLEW dependency
2016-06-02 18:20:59 +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
897179a06c
Corrected some issues on OpenGL 1.1
2016-06-01 12:37:51 +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
Ray
caa7bc366b
Reviewed DrawLight() function and some tweaks
2016-05-31 00:51:55 +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
64f6c74c9a
Add normal and specular maps to draw model process
2016-05-30 19:18:55 +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
dcd6942ed1
Fix small bug and spacing
2016-05-21 18:22:15 +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
victorfisac
30c8058fca
Add standard lighting (1/3)
...
- Ambient and lambert lighting added.
- Ambient and diffuse colors linked to standard shader.
- Single light linked to standard shader.
- LoadStandardMaterial() and depending functions added.
2016-05-20 17:18:07 +02:00
raysan5
6dac1efefe
Comented buggy code to avoid problems...
...
...on model drawing
2016-05-20 15:01:36 +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
8bbbe8cd76
Corrected namings
2016-05-19 13:50:29 +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
6acfda599e
Support indexed mesh data on OpenGL 1.1 path
...
Keep asking myself why I maintain this rendering path... -___-
2016-05-10 19:25:06 +02:00
raysan5
1ddf594d15
Added support for indexed mesh data
2016-05-10 18:24:28 +02:00
Ray
c85cd29049
Added defines for default shader names
2016-05-09 12:41:53 +02:00
Ray
f7d4951165
Improved vertex attribs support for models
2016-05-08 23:50:35 +02:00
raysan5
0bcb873cbb
Improved mesh support
...
Depending on mesh data, it can be loaded and default vertex attribute
location points are set, including colors, tangents and texcoords2
2016-05-08 15:24:02 +02:00
raysan5
eeb151586f
Corrected issues with OpenGL 1.1 backend
2016-05-07 18:28:40 +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
Ray
2646ed0393
Removed debug functions
2016-05-02 14:11:42 +02:00
Ray
0e6d1cb272
Working on materials system...
2016-05-02 00:16:32 +02:00
Ray
1fb874cdc5
Check for WebGL/Webkit extensions
...
Improve DXT-ETC1 support on HTML5
2016-05-01 01:09:48 +02:00
raysan5
2e5d898443
Corrected bug with old FBO struct
2016-04-17 11:25:04 +02:00
raysan5
284eaf1576
Use Depth Texture on OpenGL 3.3
2016-04-10 19:38:57 +02:00
raysan5
aa22d97983
Simplified texture flip and added comments
2016-04-07 13:31:53 +02:00
raysan5
0133917bf9
Correct detail
2016-04-04 01:15:43 +02:00
Ray
b6cec214bd
Unified internal shader to only one
...
Only defaultShader required, set default value for vertex color
attribute if not enabled and fragColor uniform
2016-04-03 20:14:07 +02:00
raysan5
a66c8531d6
Some code simplifications
2016-04-03 18:31:42 +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
956a6e6f77
Corrected bug and comments on model unloading
2016-03-27 18:34:05 +02:00
raysan5
ebc2b9a286
Improved windows resizing system...
...
...despite not being enabled on GLFW3
2016-03-20 14:20:42 +01: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
raysan5
4476a9e241
Review rlglUnproject() system
2016-03-02 17:13:31 +01:00
raysan5
04caf1c262
Corrected memory leak
2016-03-01 15:36:45 +01:00
Ray
0dfc7fffff
Removed a couple of TODOs
2016-02-23 00:57:50 +01:00
raysan5
823abf666e
Reviewed code TODOs
2016-02-12 12:22:56 +01:00
raysan5
fca83c9ff8
Solve bug on matrix multiply order for scale and rotation
2016-02-11 14:27:18 +01:00
Ray
2ef9552454
WARNING message shortened
2016-02-08 09:06:20 +01:00
Ray
646f1c3f71
Some formating tweaks
2016-02-03 17:45:28 +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
99f99bea47
Simplified shader matrix uniforms
2016-01-25 13:54:09 +01:00
raysan5
4e57bd1f18
Replaced GLEW by GLAD
...
Removed GLEW external dependency, now it works with GLAD
Kept GLEW path, just in case... detected weird behaviour when testing
with gDEBugger
2016-01-22 01:22:45 +01:00
raysan5
23d66e9b6f
Move extensions loading to core module
2016-01-21 12:24:35 +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
3b4d8442e0
Corrected some float values
2016-01-13 19:30:35 +01:00
raysan5
fb6ef2c2f4
Vertex shaders optimization
2016-01-13 17:13:28 +01:00
raysan5
5e7686695f
Review Light/Material system
...
Simplified for the user (more intuitive and clear)
Removed lighting module dependency
2016-01-11 13:29:55 +01:00
raysan5
e5a56fa985
Change drawing order to avoid artifacts with...
...
... transparent elements
2016-01-11 11:59:15 +01:00
raysan5
7f2e67e924
Simplified MatrixMultiply() function
2016-01-06 17:22:24 +01:00
raysan5
891c4a458a
Matrix variables renaming
2016-01-04 20:02:57 +01:00
raysan5
95da97fa74
Fixed bug: rlglGenerateMipmaps()
2016-01-04 15:09:44 +01:00
victorfisac
1bcb5ddd50
Added lighting engine module
...
- New lighting engine module which contains new data types Light and
Material. These data types and functions facilitates making a basic 3D
iluminated program with a light and a model.
- Added lighting engine module example (currently included in raylib.h;
it might be compiled by separate and include lighting.h in game source C
file).
- Corrected some opengl defines control structures and added some TODO
to fix raylib-opengl 1.1 source build (note: now source can be compiled
without errors, but rlglReadPixels() won't work properly).
Note: most of functions of phong version 330 shader are not in v100
shaders, so I couldn't write a version 100 phong shader. These functions
are included from version 150.
2015-12-21 17:25:22 +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
a6f5a0339a
Corrected bug
2015-11-09 13:13:26 +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
5208d57f1e
Corrected alpha issue on screenshots taken
2015-11-05 09:46:18 +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
Ray San
d1f099374c
Added support for s3tc compression on web
2015-10-26 11:50:13 +01:00
Ray
8c117cfb57
Reviewed NPOT messages and usage
2015-10-24 11:19:04 +02: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
Ray
6ffb3c72fb
Solved bug with depth when drawing...
...
...shapes based on LINES, TRIANGLES and QUADS. Now the calling order of
the drawing functions is respected!
2015-09-21 12:48:43 +02:00
raysan5
ef1f9fe450
Added strdup() function replacement
...
strdup() is not a C99 function (it's POSIX), not available in emscripten
2015-09-03 01:27:49 +02:00
raysan5
94d0e83207
Corrected crazy bug about model textures
...
On OpenGL ES it was set to use GL_CLAMP_TO_EDGE wrap mode for textures.
On LoadOBJ() texture coordinates were wrongly Y-flipped
2015-09-02 20:36:05 +02:00
raysan5
4879106096
Reviewed to work on Raspberry Pi
...
[rlgl] Extensions strings loading was redone to avoid a Segmentation
Fault on Raspberry Pi
2015-09-02 01:08:41 +02:00
raysan5
94a1fdc2ae
Updated some comments
2015-09-01 23:15:26 +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
5cfd59258a
Detected issue
2015-08-29 17:01:36 +02:00
raysan5
c52ba520ce
Small tweaks
2015-08-28 14:14:29 +02:00
raysan5
86f683dcbb
View description:
...
- Trying to implement rlglUnproject() - NOT WORKING
- Tested GLEW alternatives: glad and glLoadGen - NOT WORKING
2015-08-27 16:13:47 +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
5436d93a3d
Review framebuffer creation and...
...
...shader loading security check
2015-08-03 17:27:53 +02:00
raysan5
0af2f45815
SetDefaultShader(): Solved issue
2015-07-31 12:40:33 +02:00
raysan5
7834a4e2fc
Replaced old mail by twitter user
2015-07-29 21:43:30 +02:00
raysan5
14d3b0a084
Corrected issue on mipmaps generations
2015-07-18 19:25:15 +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
Ray
cd08ae7b85
Corrected bug on reset default shader
2015-06-24 09:57:03 +02:00
raysan5
1ec87f7990
Moved postpro texture to shader
2015-06-22 19:59:55 +02:00
raysan5
9572d6c063
Updated postpro shaders system
2015-06-16 20:02:01 +02:00
raysan5
d9c5614342
Updated shader system
2015-06-16 10:52:26 +02:00
raysan5
6a4afae5cc
Improved ResolveCollisionCubicmap()
...
Now it supports multiple maps one next to the other
2015-06-02 09:54:51 +02:00
raysan5
fd851d1d8b
Improved custom shaders support
...
Corrected issues with textures loading
2015-05-21 14:13:51 +02:00
raysan5
9e450df053
Added extensions check on rlglInit() and more
...
Corrected shader version depending on OGL version
Corrected bug in gestures module
2015-05-21 00:18:22 +02:00
Gatonevermind
c7ae28aaa2
Small tweak
2015-05-18 13:12:24 +02:00
raysan5
a7714c842f
raymath module review and other changes
...
Complete review of matrix rotation math
Check compressed textures support
WIP: LoadImageFromData()
2015-05-11 00:15:46 +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
7db895ab5d
Corrected some bugs and warnings
2015-04-22 18:36:52 +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
e1353b9f7d
Removed some TODO already done
2015-02-09 18:29:32 +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
Ray
c00cd38b01
Small note to remember
2015-01-21 00:12:30 +01:00
raysan5
5104567a24
Some code tweaks
2015-01-18 10:57:30 +01:00
raysan5
0bfd283526
Added support for model color tint
...
Also, added support for normals on models
2015-01-02 20:59:54 +01:00
raysan5
061ee04cb5
Integrated ratalaika pull-request
...
Added first version of OS X compilation support
Some conflicts manually resolved...
2015-01-02 10:18:43 +01:00
raysan5
b482e26925
Small tweaks
2014-12-31 19:25:39 +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
2e5f58255a
Working on rotation math...
...
[models] Added DrawQuad()
2014-12-16 11:15:56 +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
d3cf316e40
Added features and corrected bugs...
...
[core] Added SetMousePosition()
[models] LoadHeightmap() - Corrected textures bug
[raymath] Functions renaming
[WEB] Prepare environment for emscripten!
2014-12-09 13:21:55 +01:00
Palaui
a2c8ddca13
Revert "Corrected some bugs..."
...
This reverts commit 29d8b48503 .
2014-12-09 13:10:28 +01:00
Palaui
29d8b48503
Corrected some bugs...
...
[core] Added SetMousePosition()
[models] LoadHeightmap() - Corrected textures bug
[raymath] Functions renaming
[WEB] Prepare environment for emscripten!
2014-12-09 13:10:05 +01:00
raysan5
7375d0460a
Updated stb headers
2014-11-23 21:58:17 +01:00
ratalaika
ab05ace3ce
Added first version of OS X compilation support
2014-11-22 00:13:09 +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
ecb3c47704
Corrected bug with drawing order
...
We have three vertex buffers: lines, triangles and quads for textures.
Drawing in a desired order could become a nighmare... noww it seems it
works prety well...
2014-07-23 01:25:33 +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