unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2009, 05:06 AM
Alkatraz Alkatraz is offline
Administrator
 
Join Date: Jan 2007
Posts: 72
Default [Source] - Numvertices - primCount - Stride logger

Code:
//declares
unsigned int m_Stride;
static int stride=0;
int temp = 0;
int temp2 = 0;
int temp3 = 0;

//in DrawIndexedPrimitive
    if(NumVertices == temp){
    m_pD3Ddev->SetTexture(0,texPink);
    return m_pD3Ddev->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    }

    if(primCount == temp3){
    m_pD3Ddev->SetTexture(0,texOrange);
    return m_pD3Ddev->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    }

//in Present
    if(GetAsyncKeyState(VK_ADD))temp++;
    if(GetAsyncKeyState(VK_SUBTRACT))temp--;
    if(GetAsyncKeyState(VK_NUMPAD9)<0)temp2++;
    if(GetAsyncKeyState(VK_NUMPAD6)<0)temp2--;
    if(GetAsyncKeyState(VK_NUMPAD8)<0)temp3++;
    if(GetAsyncKeyState(VK_NUMPAD5)<0)temp3--;

    if(GetAsyncKeyState(VK_MULTIPLY)&1){
    add_log("NumVert: %d",temp);
    add_log("m_Stride: %d",temp2);
    add_log("primCount: %d", temp3);
    }
    
    if(GetAsyncKeyState(VK_DIVIDE)&1){
    temp=0;
    temp2=0;
    temp3=0;
    }


//in SetRenderState
    if (temp2 != 0 && m_Stride == temp2){
    m_pD3Ddev->SetTexture(0,texGreen);
    }


//in SetStreamSource
 if(StreamNumber==0) m_Stride=Stride;
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
logger, numvertices, primcount, source, stride

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:24 PM.