Blender Git Commit Log

Git Commits -> Revision 8b0a0bb

July 3, 2012, 16:15 (GMT)
Adding GPU object:
Handles Vertex and Normal drawings as they are different between ES and desktop version.
In future, it should handle color, textures, maybe effects.


How it does it:
Desktop version:
* Calls usual gl functions for doing these things. For example glVertexPointer
ES version:
* Gets location of corresponding attributes at shader creation.
* Also stores matrixes' locations
* Before drawing, we select corresponding storage to the shader/object
* When we call functions, we set attribute to given pointer at recorded location

Commit Details:

Full Hash: 8b0a0bb8376ed9a0ab24e267036dba1e514381d6
SVN Revision: 48550
Parent Commit: 5fe4853
Lines Changed: +196, -6

6 Added Paths:

/source/blender/gpu/GPU_object.h (+24, -0) (View)
/source/blender/gpu/intern/gpu_object.c (+31, -0) (View)
/source/blender/gpu/intern/gpu_object_gl11.c (+31, -0) (View)
/source/blender/gpu/intern/gpu_object_gl11.h (+7, -0) (View)
/source/blender/gpu/intern/gpu_object_gles.c (+63, -0) (View)
/source/blender/gpu/intern/gpu_object_gles.h (+34, -0) (View)

1 Modified Path:

/source/blender/gpu/CMakeLists.txt (+6, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021