• gmod_src: Added render.ReadPixels
    6 replies, posted
[B]Revision 822[/B] [INDENT]Added render.ReadPixels Symbols[/INDENT] [B]Changed Files:[/B] [LIST] [*]trunk/src_garrysmod/garrysmod/Library/cl_gl_render.cpp [*]trunk/symbols/000Admin/history.txt [/LIST] [B]Added Files:[/B] [LIST] [*]trunk/symbols/000Admin/0000000003 [*]trunk/symbols/000Admin/0000000004 [*]trunk/symbols/000Admin/0000000005 [*]trunk/symbols/000Admin/0000000006 [*]trunk/symbols/MenuSystem.dll/4D6E2EE4171000/MenuSystem.dll [*]trunk/symbols/MenuSystem.dll/4D6E2EE4171000/refs.ptr [*]trunk/symbols/SceneCacheProxy.dll/4D6B930B17d000/SceneCacheProxy.dll [*]trunk/symbols/SceneCacheProxy.dll/4D6B930B17d000/refs.ptr [*]trunk/symbols/client.dll/4D6E2ECD61e000/client.dll [*]trunk/symbols/client.dll/4D6E2ECD61e000/refs.ptr [*]trunk/symbols/client.pdb/8AC3CFDE2BB44CDDAD9075736D316C68d/client.pdb [*]trunk/symbols/client.pdb/8AC3CFDE2BB44CDDAD9075736D316C68d/refs.ptr [*]trunk/symbols/game_shader_generic_garrysmod.dll/4D6B930B33000/game_shader_generic_garrysmod.dll [*]trunk/symbols/game_shader_generic_garrysmod.dll/4D6B930B33000/refs.ptr [*]trunk/symbols/lua_shared.dll/4D6E2EBE60000/lua_shared.dll [*]trunk/symbols/lua_shared.dll/4D6E2EBE60000/refs.ptr [*]trunk/symbols/lua_shared.pdb/5A80F855755245209B269DA7E9C069462/lua_shared.pdb [*]trunk/symbols/lua_shared.pdb/5A80F855755245209B269DA7E9C069462/refs.ptr [*]trunk/symbols/menusystem.pdb/BBB3ADA0AF1541DC9A49615D64A85DE58/menusystem.pdb [*]trunk/symbols/menusystem.pdb/BBB3ADA0AF1541DC9A49615D64A85DE58/refs.ptr [*]trunk/symbols/server.dll/4D6E53F292a000/refs.ptr [*]trunk/symbols/server.dll/4D6E53F292a000/server.dll [*]trunk/symbols/server.pdb/9489105B786E4375B554EBAFC9A9EF4F18/refs.ptr [*]trunk/symbols/server.pdb/9489105B786E4375B554EBAFC9A9EF4F18/server.pdb [*]trunk/symbols/toybox.dll/4D6E2EB84e000/refs.ptr [*]trunk/symbols/toybox.dll/4D6E2EB84e000/toybox.dll [*]trunk/symbols/toybox.pdb/7EBD57B4B20A40C08F2BD5A11A6EDC0C10/refs.ptr [*]trunk/symbols/toybox.pdb/7EBD57B4B20A40C08F2BD5A11A6EDC0C10/toybox.pdb [/LIST] Committed By [B]Garry Newman[/B]
What does 'src' stand for?
Source code.
What does render.ReadPixels return/do?
[QUOTE=Grocel;28408441]What does render.ReadPixels return/do?[/QUOTE] 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.
[QUOTE=Grocel;28408441]What does render.ReadPixels return/do?[/QUOTE] 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] [code]void glReadPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * data); [/code] Returns data about the pixel set you choose.
It reduces your FPS dramatically though, so will only be useful for post process stuff.
Sorry, you need to Log In to post a reply to this thread.