gmod_src: Added render.ReadPixels

Revision 822
Added render.ReadPixels
Symbols Changed Files:
[ul]
[li]trunk/src_garrysmod/garrysmod/Library/cl_gl_render.cpp [/li][li]trunk/symbols/000Admin/history.txt[/li][/ul]
Added Files:
[ul]
[li]trunk/symbols/000Admin/0000000003 [/li][li]trunk/symbols/000Admin/0000000004 [/li][li]trunk/symbols/000Admin/0000000005 [/li][li]trunk/symbols/000Admin/0000000006 [/li][li]trunk/symbols/MenuSystem.dll/4D6E2EE4171000/MenuSystem.dll [/li][li]trunk/symbols/MenuSystem.dll/4D6E2EE4171000/refs.ptr [/li][li]trunk/symbols/SceneCacheProxy.dll/4D6B930B17d000/SceneCacheProxy.dll [/li][li]trunk/symbols/SceneCacheProxy.dll/4D6B930B17d000/refs.ptr [/li][li]trunk/symbols/client.dll/4D6E2ECD61e000/client.dll [/li][li]trunk/symbols/client.dll/4D6E2ECD61e000/refs.ptr [/li][li]trunk/symbols/client.pdb/8AC3CFDE2BB44CDDAD9075736D316C68d/client.pdb [/li][li]trunk/symbols/client.pdb/8AC3CFDE2BB44CDDAD9075736D316C68d/refs.ptr [/li][li]trunk/symbols/game_shader_generic_garrysmod.dll/4D6B930B33000/game_shader_generic_garrysmod.dll [/li][li]trunk/symbols/game_shader_generic_garrysmod.dll/4D6B930B33000/refs.ptr [/li][li]trunk/symbols/lua_shared.dll/4D6E2EBE60000/lua_shared.dll [/li][li]trunk/symbols/lua_shared.dll/4D6E2EBE60000/refs.ptr [/li][li]trunk/symbols/lua_shared.pdb/5A80F855755245209B269DA7E9C069462/lua_shared.pdb [/li][li]trunk/symbols/lua_shared.pdb/5A80F855755245209B269DA7E9C069462/refs.ptr [/li][li]trunk/symbols/menusystem.pdb/BBB3ADA0AF1541DC9A49615D64A85DE58/menusystem.pdb [/li][li]trunk/symbols/menusystem.pdb/BBB3ADA0AF1541DC9A49615D64A85DE58/refs.ptr [/li][li]trunk/symbols/server.dll/4D6E53F292a000/refs.ptr [/li][li]trunk/symbols/server.dll/4D6E53F292a000/server.dll [/li][li]trunk/symbols/server.pdb/9489105B786E4375B554EBAFC9A9EF4F18/refs.ptr [/li][li]trunk/symbols/server.pdb/9489105B786E4375B554EBAFC9A9EF4F18/server.pdb [/li][li]trunk/symbols/toybox.dll/4D6E2EB84e000/refs.ptr [/li][li]trunk/symbols/toybox.dll/4D6E2EB84e000/toybox.dll [/li][li]trunk/symbols/toybox.pdb/7EBD57B4B20A40C08F2BD5A11A6EDC0C10/refs.ptr [/li][li]trunk/symbols/toybox.pdb/7EBD57B4B20A40C08F2BD5A11A6EDC0C10/toybox.pdb[/li][/ul]

Committed By Garry Newman

What does ‘src’ stand for?

Source code.

What does render.ReadPixels return/do?

Probably just an internal function for Garry to piss about with, as he’s making bokeh for his DOF according to a post he made in the UE3 thread in News Node or GGD.

I’d assume you pass a screenpos position and it will return the colour of pixel.

[editline].[/editline]

Reading a little about OpenGL - should be related.

[editline].[/editline]


void glReadPixels(	GLint  	x,
 	GLint  	y,
 	GLsizei  	width,
 	GLsizei  	height,
 	GLenum  	format,
 	GLenum  	type,
 	GLvoid *  	data);


Returns data about the pixel set you choose.

It reduces your FPS dramatically though, so will only be useful for post process stuff.