Go to file
Nicholas Bishop abdf420a6d == GPU Buffers ==
This patch attempts to clean up and document the GPU buffers
code. There are a few bug fixes as well.

Patch reviewed here: http://codereview.appspot.com/4631052/

Summary:

* Bugfix: make GPU_buffer_copy_normal convert from shorts to floats
  correctly, also fixed the use of cached face normal CustomData.

* Bugfix: changed the `mat_nr' field of GPUBufferMaterial from char to
  short.

* Changed color buffer setup to not alloc a temporary copy of color
  data, just passes the MCol data in directly.

* Changed the GPU buffer pool code to make clearer what operates
  specifically on the global pool.

* Lots of refactoring for GPU_drawobject_new; should operate mostly
  the same (except got rid of one unecessary allocation), just split
  into more functions and without macros now.

* Converted some #defines into enumerations.

* Made some stuff private, pulled out of header file.

* Deleted unused function GPU_buffer_pool_free_unused().

* Removed GPU_interleaved_setup and related #defines. (I think this
  was used for editmode VBOs, but those were disabled.)

* Added lots of comments.

* Added a few comments in the code signed `--nicholas' to note places
  where I am unsure about design or usage, would be good to address
  these better.

* Code formatting changed to be more consistent with the rest of
  Blender.

* Renamed some fields and variables to be more consistent with
  Blender's naming conventions.

* Renamed some fields and variables to use more descriptive names,
  e.g. renamed `redir' to `mat_orig_to_new'.

* Removed print outs with DEBUG_VBO -- don't feel too strongly about
  this one, just not used elsewhere in Blender, could be easily added
  back if others disagree though.

* Moved the PBVH drawing code down to the bottom of the file, before
  was sitting in the middle of the other VBO code
2011-07-08 19:58:02 +00:00
build_files blenderplayer bundle in OSX doesn't need script folder (untested) 2011-07-05 00:30:27 +00:00
doc example of Physics Constraints module :) 2011-07-08 06:51:12 +00:00
extern update cmake checker to ignore file list and add some headers to the source list. 2011-06-21 17:00:34 +00:00
intern Fix #27891: IK stretch gives inaccurate results. Tweaked translation segment 2011-07-08 12:18:54 +00:00
release fix issue raised by [#27819] Unwrap Menu (U) -> Lightmap Pack throws Python Exception. But use a different fix. 2011-07-08 03:07:51 +00:00
source == GPU Buffers == 2011-07-08 19:58:02 +00:00
CMakeLists.txt own change to cmake files broke MSVC2010 with Debug configuration, reported by Alex K 2011-07-01 03:40:12 +00:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile initialize cmake's CMAKE_BUILD_TYPE to 'Release' 2011-06-27 13:18:08 +00:00
SConstruct cmake option to build without an audio library. 2011-06-23 09:27:56 +00:00