Welcome, Guest.

Author Topic: c++(internal) ReadPixel (aka Screengrab)  (Read 164 times)

Offline asdqwe1548

  • Level 1 - Noob
  • *
  • Posts: 11
    • View Profile
  • Korea, Republic of
c++(internal) ReadPixel (aka Screengrab)
« on: August 19, 2018, 04:13:33 am »
Yo currently i try to hook Readpixel (wich gets called from screengrab) but i seem to fail...

Can some1 pls explain what i need to do (no lua )

like hook the CMAtRenderContext with the index 11?



Code:
// Auto reconstructed from vtable block @ 0x000AFC40
// from "materialsystem.dylib", by ida_vtables.idc
0   CMatRenderContext::BeginRender(void)
1   CMatRenderContext::EndRender(void)
2   CMatRenderContext::Flush(bool)
3   CMatRenderContext::BindLocalCubemap(ITexture *)
4   CMatRenderContextBase::SetRenderTarget(ITexture *)
5   CMatRenderContextBase::GetRenderTarget(void)
6   CMatRenderContext::GetRenderTargetDimensions(int &,int &)const
7   CMatRenderContext::Bind(IMaterial *,void *)
8   CMatRenderContext::BindLightmapPage(int)
9   CMatRenderContext::DepthRange(float,float)
10   CMatRenderContext::ClearBuffers(bool,bool,bool)
11   CMatRenderContext::ReadPixels(int x,int y,int w,int h,unsigned char * data,ImageFormat format)




Total Members


  • Youtube Youtube
  • Facebook Facebook
  • Twitter Twitter
  • Steam Steam

  • Powered by SMF | SMF © 2018, Simple Machines

    2018 BigPackets. All rights reserved. All other trademarks, logos and copyrights are the property of their respective owners. This site is not associated with any company in any way.