ViKiNG SDK [Internal]

Posts 1–15 of 19 · Page 1 of 2
ViKiNG SDK [Internal]
SDK Drawings
Since many of you had the problem about Drawings shit in the internal way, i set it up for ya


To read the indexes.
Code:
template< typename Function > Function call_index(PVOID Base, DWORD Index)
{
	PDWORD* VTablePointer = (PDWORD*)Base;
	PDWORD VTableFunctionBase = *VTablePointer;
	DWORD dwAddress = VTableFunctionBase[Index];
	return (Function)(dwAddress);
}
Code:
class ISurface {
public:

	void DrawSetColor(Color col)
	{
		typedef void(__thiscall* oDrawSetColor)(PVOID, Color);
		return call_index< oDrawSetColor >(this, 14)(this, col);
	}

	void DrawOutlinedRect(int x0, int y0, int x1, int y1) {
		typedef void(__thiscall* oDrawOutlinedRect)(PVOID, int, int, int, int);
		return call_index< oDrawOutlinedRect >(this, 18)(this, x0, y0, x1, y1);
	}

	void DrawLine(int x0, int y0, int x1, int y1) {
		typedef void(__thiscall* oDrawLine)(PVOID, int, int, int, int);
		return call_index< oDrawLine >(this, 19)(this, x0, y0, x1, y1);
	}

	unsigned long CreateFontA() {
		typedef unsigned long(__thiscall* oCreateFont)(PVOID);
		return call_index< oCreateFont >(this, 71)(this);
	}

	bool SetFontGlyphSet(unsigned long font, const char *windowsFontName, int tall, int weight, int blur, int scanlines, int flags, int nRangeMin = 0, int nRangeMax = 0) {
		typedef bool(__thiscall* oCreateFont)(PVOID, unsigned long, const char *, int, int, int, int, int, int, int);
		return call_index< oCreateFont >(this, 72)(this, font, windowsFontName, tall, weight, blur, scanlines, flags, nRangeMin, nRangeMax);
	}

	void DrawSetTextPos(int x, int y) {
		typedef void(__thiscall* oDrawSetTextPos)(PVOID, int, int);
		return call_index< oDrawSetTextPos >(this, 26)(this, x, y);
	}

	void DrawSetTextFont(unsigned long font) {
		typedef void(__thiscall* oDrawSetTextFont)(PVOID, unsigned long);
		return call_index< oDrawSetTextFont >(this, 23)(this, font);
	}

	void DrawSetTextColor(Color col) {
		typedef void(__thiscall* oDrawSetTextColor)(PVOID, Color);
		return call_index< oDrawSetTextColor >(this, 24)(this, col);
	}

	void DrawPrintText(const wchar_t *text, int textLen, FontDrawType_t drawType = FONT_DRAW_DEFAULT) {
		typedef void(__thiscall* oDrawPrintText)(PVOID, const wchar_t*, int, FontDrawType_t);
		return call_index< oDrawPrintText >(this, 28)(this, text, textLen, drawType);
	}

};
Enjoy
Thanks ViKiNG
Works for any game? As far as I reckon, this is for source engine games only? Unless it's a steamoverlay hook.
Quote Originally Posted by gtaplayer2 View Post
Works for any game? As far as I reckon, this is for source engine games only? Unless it's a steamoverlay hook.
That was what i meant, but with other words.
Thanks for sharing
Yo m8. do you have the vtables for DrawSetTextureID and everything to draw a texture as like this:
"Team_Fortress_2 Embedding_and_rendering_custom_textures" <- google please. I'm not allowed to post links here.

thx
Quote Originally Posted by xzackcc View Post
Yo m8. do you have the vtables for DrawSetTextureID and everything to draw a texture as like this:
"Team_Fortress_2 Embedding_and_rendering_custom_textures" <- google please. I'm not allowed to post links here.

thx
Code:
// Auto reconstructed from vtable block @ 0x000EB3E0
// from "vguimatsurface.dylib", by ida_vtables.idc
0	CMatSystemSurface::Connect(void * (*)(char  const*,int *))
1	CMatSystemSurface::Disconnect(void)
2	CMatSystemSurface::QueryInterface(char  const*)
3	CMatSystemSurface::Init(void)
4	CMatSystemSurface::Shutdown(void)
5	CMatSystemSurface::GetDependencies(void)
6	CMatSystemSurface::GetTier(void)
7	CMatSystemSurface::Reconnect(void * (*)(char  const*,int *),char  const*)
8	CMatSystemSurface::RunFrame(void)
9	CMatSystemSurface::GetEmbeddedPanel(void)
10	CMatSystemSurface::SetEmbeddedPanel(unsigned int)
11	CMatSystemSurface::PushMakeCurrent(unsigned int,bool)
12	CMatSystemSurface::PopMakeCurrent(unsigned int)
13	CMatSystemSurface::DrawSetColor(int,int,int,int)
14	CMatSystemSurface::DrawSetColor(Color)
15	CMatSystemSurface::DrawFilledRect(int,int,int,int)
16	CMatSystemSurface::DrawFilledRectArray(vgui::IntRect *,int)
17	CMatSystemSurface::DrawOutlinedRect(int,int,int,int)
18	CMatSystemSurface::DrawLine(int,int,int,int)
19	CMatSystemSurface::DrawPolyLine(int *,int *,int)
20	CMatSystemSurface::DrawSetApparentDepth(float)
21	CMatSystemSurface::DrawClearApparentDepth(void)
22	CMatSystemSurface::DrawSetTextFont(unsigned long)
23	CMatSystemSurface::DrawSetTextColor(int,int,int,int)
24	CMatSystemSurface::DrawSetTextColor(Color)
25	CMatSystemSurface::DrawSetTextPos(int,int)
26	CMatSystemSurface::DrawGetTextPos(int &,int &)
27	CMatSystemSurface::DrawPrintText(wchar_t  const*,int,FontDrawType_t)
28	CMatSystemSurface::DrawUnicodeChar(wchar_t,FontDrawType_t)
29	CMatSystemSurface::DrawFlushText(void)
30	CMatSystemSurface::CreateHTMLWindow(vgui::IHTMLEvents *,unsigned int)
31	CMatSystemSurface::PaintHTMLWindow(vgui::IHTML *)
32	CMatSystemSurface::DeleteHTMLWindow(vgui::IHTML *)
33	CMatSystemSurface::DrawGetTextureId(char  const*)
34	CMatSystemSurface::DrawGetTextureFile(int,char *,int)
35	CMatSystemSurface::DrawSetTextureFile(int,char  const*,int,bool)
36	CMatSystemSurface::DrawSetTextureRGBA(int,unsigned char  const*,int,int)
37	CMatSystemSurface::DrawSetTexture(int)
38	CMatSystemSurface::DeleteTextureByID(int)
39	CMatSystemSurface::DrawGetTextureSize(int,int &,int &)
40	CMatSystemSurface::DrawTexturedRect(int,int,int,int)
41	CMatSystemSurface::IsTextureIDValid(int)
42	CMatSystemSurface::CreateNewTextureID(bool)
43	CMatSystemSurface::GetScreenSize(int &,int &)
44	CMatSystemSurface::SetAsTopMost(unsigned int,bool)
45	CMatSystemSurface::BringToFront(unsigned int)
46	CMatSystemSurface::SetForegroundWindow(unsigned int)
47	CMatSystemSurface::SetPanelVisible(unsigned int,bool)
48	CMatSystemSurface::SetMinimized(unsigned int,bool)
49	CMatSystemSurface::IsMinimized(unsigned int)
50	CMatSystemSurface::FlashWindow(unsigned int,bool)
51	CMatSystemSurface::SetTitle(unsigned int,wchar_t  const*)
52	CMatSystemSurface::SetAsToolBar(unsigned int,bool)
53	CMatSystemSurface::CreatePopup(unsigned int,bool,bool,bool,bool,bool)
54	CMatSystemSurface::SwapBuffers(unsigned int)
55	CMatSystemSurface::Invalidate(unsigned int)
56	CMatSystemSurface::SetCursor(unsigned long)
57	CMatSystemSurface::IsCursorVisible(void)
58	CMatSystemSurface::ApplyChanges(void)
59	CMatSystemSurface::IsWithin(int,int)
60	CMatSystemSurface::HasFocus(void)
61	CMatSystemSurface::SupportsFeature(vgui::ISurface::SurfaceFeature_t)
62	CMatSystemSurface::RestrictPaintToSinglePanel(unsigned int,bool)
63	CMatSystemSurface::SetModalPanel(unsigned int)
64	CMatSystemSurface::GetModalPanel(void)
65	CMatSystemSurface::UnlockCursor(void)
66	CMatSystemSurface::LockCursor(void)
67	CMatSystemSurface::SetTranslateExtendedKeys(bool)
68	CMatSystemSurface::GetTopmostPopup(void)
69	CMatSystemSurface::SetTopLevelFocus(unsigned int)
70	CMatSystemSurface::CreateFont(void)
71	CMatSystemSurface::SetFontGlyphSet(unsigned long,char  const*,int,int,int,int,int,int,int)
72	CMatSystemSurface::AddCustomFontFile(char  const*)
73	CMatSystemSurface::GetFontTall(unsigned long)
74	CMatSystemSurface::GetFontAscent(unsigned long,wchar_t)
75	CMatSystemSurface::IsFontAdditive(unsigned long)
76	CMatSystemSurface::GetCharABCwide(unsigned long,int,int &,int &,int &)
77	CMatSystemSurface::GetCharacterWidth(unsigned long,int)
78	CMatSystemSurface::GetTextSize(unsigned long,wchar_t  const*,int &,int &)
79	CMatSystemSurface::GetNotifyPanel(void)
80	CMatSystemSurface::SetNotifyIcon(unsigned int,unsigned long,unsigned int,char  const*)
81	CMatSystemSurface::PlaySound(char  const*)
82	CMatSystemSurface::GetPopupCount(void)
83	CMatSystemSurface::GetPopup(int)
84	CMatSystemSurface::ShouldPaintChildPanel(unsigned int)
85	CMatSystemSurface::RecreateContext(unsigned int)
86	CMatSystemSurface::AddPanel(unsigned int)
87	CMatSystemSurface::ReleasePanel(unsigned int)
88	CMatSystemSurface::MovePopupToFront(unsigned int)
89	CMatSystemSurface::MovePopupToBack(unsigned int)
90	CMatSystemSurface::SolveTraverse(unsigned int,bool)
91	CMatSystemSurface::PaintTraverse(unsigned int)
92	CMatSystemSurface::EnableMouseCapture(unsigned int,bool)
93	CMatSystemSurface::GetWorkspaceBounds(int &,int &,int &,int &)
94	CMatSystemSurface::GetAbsoluteWindowBounds(int &,int &,int &,int &)
95	CMatSystemSurface::GetProportionalBase(int &,int &)
96	CMatSystemSurface::CalculateMouseVisible(void)
97	CMatSystemSurface::NeedKBInput(void)
98	CMatSystemSurface::HasCursorPosFunctions(void)
99	CMatSystemSurface::SurfaceGetCursorPos(int &,int &)
100	CMatSystemSurface::SurfaceSetCursorPos(int,int)
101	CMatSystemSurface::DrawTexturedLine(FontVertex_t  const&,FontVertex_t  const&)
102	CMatSystemSurface::DrawOutlinedCircle(int,int,int,int)
103	CMatSystemSurface::DrawTexturedPolyLine(FontVertex_t  const*,int)
104	CMatSystemSurface::DrawTexturedSubRect(int,int,int,int,float,float,float,float)
105	CMatSystemSurface::DrawTexturedPolygon(int,FontVertex_t *,bool)
106	CMatSystemSurface::GetTitle(unsigned int)
107	CMatSystemSurface::IsCursorLocked(void)const
108	CMatSystemSurface::SetWorkspaceInsets(int,int,int,int)
109	CMatSystemSurface::DrawWordBubble(int,int,int,int,int,Color,Color,bool,int,int,int)
110	CMatSystemSurface::DrawGetUnicodeCharRenderInfo(wchar_t,FontCharRenderInfo &)
111	CMatSystemSurface::DrawRenderCharFromInfo(FontCharRenderInfo  const&)
112	CMatSystemSurface::DrawSetAlphaMultiplier(float)
113	CMatSystemSurface::DrawGetAlphaMultiplier(void)
114	CMatSystemSurface::SetAllowHTMLJavaScript(bool)
115	CMatSystemSurface::OnScreenSizeChanged(int,int)
116	CMatSystemSurface::CreateCursorFromFile(char  const*,char  const*)
117	CMatSystemSurface::DrawGetTextureMatInfoFactory(int)
118	CMatSystemSurface::PaintTraverseEx(unsigned int,bool)
119	CMatSystemSurface::GetZPos(void)const
120	CMatSystemSurface::SetPanelForInput(unsigned int)
121	CMatSystemSurface::DrawFilledRectFastFade(int,int,int,int,int,int,unsigned int,unsigned int,bool)
122	CMatSystemSurface::DrawFilledRectFade(int,int,int,int,unsigned int,unsigned int,bool)
123	CMatSystemSurface::DrawSetTextureRGBAEx(int,unsigned char  const*,int,int,ImageFormat)
124	CMatSystemSurface::DrawSetTextScale(float,float)
125	CMatSystemSurface::SetBitmapFontGlyphSet(unsigned long,char  const*,float,float,int)
126	CMatSystemSurface::AddBitmapFontFile(char  const*)
127	CMatSystemSurface::SetBitmapFontName(char  const*,char  const*)
128	CMatSystemSurface::GetBitmapFontName(char  const*)
129	CMatSystemSurface::ClearTemporaryFontCache(void)
130	CMatSystemSurface::GetIconImageForFullPath(char  const*)
131	CMatSystemSurface::DrawUnicodeString(wchar_t  const*,FontDrawType_t)
132	CMatSystemSurface::PrecacheFontCharacters(unsigned long,wchar_t *)
133	CMatSystemSurface::GetFontName(unsigned long)
134	CMatSystemSurface::ForceScreenSizeOverride(bool,int,int)
135	CMatSystemSurface::ForceScreenPosOffset(bool,int,int)
136	CMatSystemSurface::OffsetAbsPos(int &,int &)
137	CMatSystemSurface::SetAbsPosForContext(int,int,int)
138	CMatSystemSurface::GetAbsPosForContext(int,int &,int &)
139	CMatSystemSurface::ResetFontCaches(void)
140	CMatSystemSurface::IsScreenSizeOverrideActive(void)
141	CMatSystemSurface::IsScreenPosOverrideActive(void)
142	CMatSystemSurface::DestroyTextureID(int)
143	CMatSystemSurface::GetTextureNumFrames(int)
144	CMatSystemSurface::DrawSetTextureFrame(int,int,unsigned int *)
145	CMatSystemSurface::GetClipRect(int &,int &,int &,int &)
146	CMatSystemSurface::SetClipRect(int,int,int,int)
147	CMatSystemSurface::DrawTexturedRectEx(vgui::DrawTexturedRectParms_t *)
148	CMatSystemSurface::GetKernedCharWidth(unsigned long,wchar_t,wchar_t,wchar_t,float &,float &,float &)
149	CMatSystemSurface::DrawUpdateRegionTextureRGBA(int,int,int,unsigned char  const*,int,int,ImageFormat)
150	CMatSystemSurface::BHTMLWindowNeedsPaint(vgui::IHTML *)
151	CMatSystemSurface::DrawSetTextureRGBALinear(int,unsigned char  const*,int,int)
152	CMatSystemSurface::GetWebkitHTMLUserAgentString(void)
153	CMatSystemSurface::AccessChromeHTMLController(void)
154	CMatSystemSurface::SetAppDrivesInput(bool)
155	CMatSystemSurface::EnableWindowsMessages(bool)
156	CMatSystemSurface::Begin3DPaint(int,int,int,int)
157	CMatSystemSurface::End3DPaint(bool)
158	CMatSystemSurface::DisableClipping(bool)
159	CMatSystemSurface::SetMouseCallbacks(void (*)(int &,int &),void (*)(int,int))
160	CMatSystemSurface::InstallPlaySoundFunc(void (*)(char  const*))
161	CMatSystemSurface::DrawColoredCircle(int,int,float,int,int,int,int)
162	CMatSystemSurface::DrawColoredText(unsigned long,int,int,int,int,int,int,char *,...)
163	CMatSystemSurface::DrawColoredTextRect(unsigned long,int,int,int,int,int,int,int,int,char *,...)
164	CMatSystemSurface::DrawTextHeight(unsigned long,int,int &,char *,...)
165	CMatSystemSurface::DrawTextLen(unsigned long,char *,...)
166	CMatSystemSurface::DrawPanelIn3DSpace(unsigned int,VMatrix  const&,int,int,float,float)
167	CMatSystemSurface::DrawSetTextureMaterial(int,IMaterial *)
168	CMatSystemSurface::HandleInputEvent(InputEvent_t  const&)
169	CMatSystemSurface::Set3DPaintTempRenderTarget(char  const*)
170	CMatSystemSurface::Reset3DPaintTempRenderTarget(void)
171	CMatSystemSurface::DrawGetTextureMaterial(int)
172	CMatSystemSurface::SetInputContext(InputContextHandle_t__ *)
173	CMatSystemSurface::DrawSetSubTextureRGBA(int,int,int,unsigned char  const*,int,int)
174	CMatSystemSurface::DrawTexturedSubRectGradient(int,int,int,int,float,float,float,float,Color,Color,bool)
175	CMatSystemSurface::~CMatSystemSurface()
176	CMatSystemSurface::~CMatSystemSurface()
177	CMatSystemSurface::SupportsFontFeature(FontFeature_t)
178	CMatSystemSurface::InEngine(void)
179	CMatSystemSurface::IsInThink(unsigned int)
180	CMatSystemSurface::SetLanguage(char  const*)
181	CMatSystemSurface::GetLanguage(void)
182	CMatSystemSurface::ComputeTextWidth(wchar_t  const*)
Quote Originally Posted by viking911 View Post
Code:
// Auto reconstructed from vtable block @ 0x000EB3E0
// from "vguimatsurface.dylib", by ida_vtables.idc
0	CMatSystemSurface::Connect(void * (*)(char  const*,int *))
1	CMatSystemSurface::Disconnect(void)
2	CMatSystemSurface::QueryInterface(char  const*)
3	CMatSystemSurface::Init(void)
4	CMatSystemSurface::Shutdown(void)
5	CMatSystemSurface::GetDependencies(void)
6	CMatSystemSurface::GetTier(void)
7	CMatSystemSurface::Reconnect(void * (*)(char  const*,int *),char  const*)
8	CMatSystemSurface::RunFrame(void)
9	CMatSystemSurface::GetEmbeddedPanel(void)
10	CMatSystemSurface::SetEmbeddedPanel(unsigned int)
11	CMatSystemSurface::PushMakeCurrent(unsigned int,bool)
12	CMatSystemSurface::PopMakeCurrent(unsigned int)
13	CMatSystemSurface::DrawSetColor(int,int,int,int)
14	CMatSystemSurface::DrawSetColor(Color)
15	CMatSystemSurface::DrawFilledRect(int,int,int,int)
16	CMatSystemSurface::DrawFilledRectArray(vgui::IntRect *,int)
17	CMatSystemSurface::DrawOutlinedRect(int,int,int,int)
18	CMatSystemSurface::DrawLine(int,int,int,int)
19	CMatSystemSurface::DrawPolyLine(int *,int *,int)
20	CMatSystemSurface::DrawSetApparentDepth(float)
21	CMatSystemSurface::DrawClearApparentDepth(void)
22	CMatSystemSurface::DrawSetTextFont(unsigned long)
23	CMatSystemSurface::DrawSetTextColor(int,int,int,int)
24	CMatSystemSurface::DrawSetTextColor(Color)
25	CMatSystemSurface::DrawSetTextPos(int,int)
26	CMatSystemSurface::DrawGetTextPos(int &,int &)
27	CMatSystemSurface::DrawPrintText(wchar_t  const*,int,FontDrawType_t)
28	CMatSystemSurface::DrawUnicodeChar(wchar_t,FontDrawType_t)
29	CMatSystemSurface::DrawFlushText(void)
30	CMatSystemSurface::CreateHTMLWindow(vgui::IHTMLEvents *,unsigned int)
31	CMatSystemSurface::PaintHTMLWindow(vgui::IHTML *)
32	CMatSystemSurface::DeleteHTMLWindow(vgui::IHTML *)
33	CMatSystemSurface::DrawGetTextureId(char  const*)
34	CMatSystemSurface::DrawGetTextureFile(int,char *,int)
35	CMatSystemSurface::DrawSetTextureFile(int,char  const*,int,bool)
36	CMatSystemSurface::DrawSetTextureRGBA(int,unsigned char  const*,int,int)
37	CMatSystemSurface::DrawSetTexture(int)
38	CMatSystemSurface::DeleteTextureByID(int)
39	CMatSystemSurface::DrawGetTextureSize(int,int &,int &)
40	CMatSystemSurface::DrawTexturedRect(int,int,int,int)
41	CMatSystemSurface::IsTextureIDValid(int)
42	CMatSystemSurface::CreateNewTextureID(bool)
43	CMatSystemSurface::GetScreenSize(int &,int &)
44	CMatSystemSurface::SetAsTopMost(unsigned int,bool)
45	CMatSystemSurface::BringToFront(unsigned int)
46	CMatSystemSurface::SetForegroundWindow(unsigned int)
47	CMatSystemSurface::SetPanelVisible(unsigned int,bool)
48	CMatSystemSurface::SetMinimized(unsigned int,bool)
49	CMatSystemSurface::IsMinimized(unsigned int)
50	CMatSystemSurface::FlashWindow(unsigned int,bool)
51	CMatSystemSurface::SetTitle(unsigned int,wchar_t  const*)
52	CMatSystemSurface::SetAsToolBar(unsigned int,bool)
53	CMatSystemSurface::CreatePopup(unsigned int,bool,bool,bool,bool,bool)
54	CMatSystemSurface::SwapBuffers(unsigned int)
55	CMatSystemSurface::Invalidate(unsigned int)
56	CMatSystemSurface::SetCursor(unsigned long)
57	CMatSystemSurface::IsCursorVisible(void)
58	CMatSystemSurface::ApplyChanges(void)
59	CMatSystemSurface::IsWithin(int,int)
60	CMatSystemSurface::HasFocus(void)
61	CMatSystemSurface::SupportsFeature(vgui::ISurface::SurfaceFeature_t)
62	CMatSystemSurface::RestrictPaintToSinglePanel(unsigned int,bool)
63	CMatSystemSurface::SetModalPanel(unsigned int)
64	CMatSystemSurface::GetModalPanel(void)
65	CMatSystemSurface::UnlockCursor(void)
66	CMatSystemSurface::LockCursor(void)
67	CMatSystemSurface::SetTranslateExtendedKeys(bool)
68	CMatSystemSurface::GetTopmostPopup(void)
69	CMatSystemSurface::SetTopLevelFocus(unsigned int)
70	CMatSystemSurface::CreateFont(void)
71	CMatSystemSurface::SetFontGlyphSet(unsigned long,char  const*,int,int,int,int,int,int,int)
72	CMatSystemSurface::AddCustomFontFile(char  const*)
73	CMatSystemSurface::GetFontTall(unsigned long)
74	CMatSystemSurface::GetFontAscent(unsigned long,wchar_t)
75	CMatSystemSurface::IsFontAdditive(unsigned long)
76	CMatSystemSurface::GetCharABCwide(unsigned long,int,int &,int &,int &)
77	CMatSystemSurface::GetCharacterWidth(unsigned long,int)
78	CMatSystemSurface::GetTextSize(unsigned long,wchar_t  const*,int &,int &)
79	CMatSystemSurface::GetNotifyPanel(void)
80	CMatSystemSurface::SetNotifyIcon(unsigned int,unsigned long,unsigned int,char  const*)
81	CMatSystemSurface::PlaySound(char  const*)
82	CMatSystemSurface::GetPopupCount(void)
83	CMatSystemSurface::GetPopup(int)
84	CMatSystemSurface::ShouldPaintChildPanel(unsigned int)
85	CMatSystemSurface::RecreateContext(unsigned int)
86	CMatSystemSurface::AddPanel(unsigned int)
87	CMatSystemSurface::ReleasePanel(unsigned int)
88	CMatSystemSurface::MovePopupToFront(unsigned int)
89	CMatSystemSurface::MovePopupToBack(unsigned int)
90	CMatSystemSurface::SolveTraverse(unsigned int,bool)
91	CMatSystemSurface::PaintTraverse(unsigned int)
92	CMatSystemSurface::EnableMouseCapture(unsigned int,bool)
93	CMatSystemSurface::GetWorkspaceBounds(int &,int &,int &,int &)
94	CMatSystemSurface::GetAbsoluteWindowBounds(int &,int &,int &,int &)
95	CMatSystemSurface::GetProportionalBase(int &,int &)
96	CMatSystemSurface::CalculateMouseVisible(void)
97	CMatSystemSurface::NeedKBInput(void)
98	CMatSystemSurface::HasCursorPosFunctions(void)
99	CMatSystemSurface::SurfaceGetCursorPos(int &,int &)
100	CMatSystemSurface::SurfaceSetCursorPos(int,int)
101	CMatSystemSurface::DrawTexturedLine(FontVertex_t  const&,FontVertex_t  const&)
102	CMatSystemSurface::DrawOutlinedCircle(int,int,int,int)
103	CMatSystemSurface::DrawTexturedPolyLine(FontVertex_t  const*,int)
104	CMatSystemSurface::DrawTexturedSubRect(int,int,int,int,float,float,float,float)
105	CMatSystemSurface::DrawTexturedPolygon(int,FontVertex_t *,bool)
106	CMatSystemSurface::GetTitle(unsigned int)
107	CMatSystemSurface::IsCursorLocked(void)const
108	CMatSystemSurface::SetWorkspaceInsets(int,int,int,int)
109	CMatSystemSurface::DrawWordBubble(int,int,int,int,int,Color,Color,bool,int,int,int)
110	CMatSystemSurface::DrawGetUnicodeCharRenderInfo(wchar_t,FontCharRenderInfo &)
111	CMatSystemSurface::DrawRenderCharFromInfo(FontCharRenderInfo  const&)
112	CMatSystemSurface::DrawSetAlphaMultiplier(float)
113	CMatSystemSurface::DrawGetAlphaMultiplier(void)
114	CMatSystemSurface::SetAllowHTMLJavaScript(bool)
115	CMatSystemSurface::OnScreenSizeChanged(int,int)
116	CMatSystemSurface::CreateCursorFromFile(char  const*,char  const*)
117	CMatSystemSurface::DrawGetTextureMatInfoFactory(int)
118	CMatSystemSurface::PaintTraverseEx(unsigned int,bool)
119	CMatSystemSurface::GetZPos(void)const
120	CMatSystemSurface::SetPanelForInput(unsigned int)
121	CMatSystemSurface::DrawFilledRectFastFade(int,int,int,int,int,int,unsigned int,unsigned int,bool)
122	CMatSystemSurface::DrawFilledRectFade(int,int,int,int,unsigned int,unsigned int,bool)
123	CMatSystemSurface::DrawSetTextureRGBAEx(int,unsigned char  const*,int,int,ImageFormat)
124	CMatSystemSurface::DrawSetTextScale(float,float)
125	CMatSystemSurface::SetBitmapFontGlyphSet(unsigned long,char  const*,float,float,int)
126	CMatSystemSurface::AddBitmapFontFile(char  const*)
127	CMatSystemSurface::SetBitmapFontName(char  const*,char  const*)
128	CMatSystemSurface::GetBitmapFontName(char  const*)
129	CMatSystemSurface::ClearTemporaryFontCache(void)
130	CMatSystemSurface::GetIconImageForFullPath(char  const*)
131	CMatSystemSurface::DrawUnicodeString(wchar_t  const*,FontDrawType_t)
132	CMatSystemSurface::PrecacheFontCharacters(unsigned long,wchar_t *)
133	CMatSystemSurface::GetFontName(unsigned long)
134	CMatSystemSurface::ForceScreenSizeOverride(bool,int,int)
135	CMatSystemSurface::ForceScreenPosOffset(bool,int,int)
136	CMatSystemSurface::OffsetAbsPos(int &,int &)
137	CMatSystemSurface::SetAbsPosForContext(int,int,int)
138	CMatSystemSurface::GetAbsPosForContext(int,int &,int &)
139	CMatSystemSurface::ResetFontCaches(void)
140	CMatSystemSurface::IsScreenSizeOverrideActive(void)
141	CMatSystemSurface::IsScreenPosOverrideActive(void)
142	CMatSystemSurface::DestroyTextureID(int)
143	CMatSystemSurface::GetTextureNumFrames(int)
144	CMatSystemSurface::DrawSetTextureFrame(int,int,unsigned int *)
145	CMatSystemSurface::GetClipRect(int &,int &,int &,int &)
146	CMatSystemSurface::SetClipRect(int,int,int,int)
147	CMatSystemSurface::DrawTexturedRectEx(vgui::DrawTexturedRectParms_t *)
148	CMatSystemSurface::GetKernedCharWidth(unsigned long,wchar_t,wchar_t,wchar_t,float &,float &,float &)
149	CMatSystemSurface::DrawUpdateRegionTextureRGBA(int,int,int,unsigned char  const*,int,int,ImageFormat)
150	CMatSystemSurface::BHTMLWindowNeedsPaint(vgui::IHTML *)
151	CMatSystemSurface::DrawSetTextureRGBALinear(int,unsigned char  const*,int,int)
152	CMatSystemSurface::GetWebkitHTMLUserAgentString(void)
153	CMatSystemSurface::AccessChromeHTMLController(void)
154	CMatSystemSurface::SetAppDrivesInput(bool)
155	CMatSystemSurface::EnableWindowsMessages(bool)
156	CMatSystemSurface::Begin3DPaint(int,int,int,int)
157	CMatSystemSurface::End3DPaint(bool)
158	CMatSystemSurface::DisableClipping(bool)
159	CMatSystemSurface::SetMouseCallbacks(void (*)(int &,int &),void (*)(int,int))
160	CMatSystemSurface::InstallPlaySoundFunc(void (*)(char  const*))
161	CMatSystemSurface::DrawColoredCircle(int,int,float,int,int,int,int)
162	CMatSystemSurface::DrawColoredText(unsigned long,int,int,int,int,int,int,char *,...)
163	CMatSystemSurface::DrawColoredTextRect(unsigned long,int,int,int,int,int,int,int,int,char *,...)
164	CMatSystemSurface::DrawTextHeight(unsigned long,int,int &,char *,...)
165	CMatSystemSurface::DrawTextLen(unsigned long,char *,...)
166	CMatSystemSurface::DrawPanelIn3DSpace(unsigned int,VMatrix  const&,int,int,float,float)
167	CMatSystemSurface::DrawSetTextureMaterial(int,IMaterial *)
168	CMatSystemSurface::HandleInputEvent(InputEvent_t  const&)
169	CMatSystemSurface::Set3DPaintTempRenderTarget(char  const*)
170	CMatSystemSurface::Reset3DPaintTempRenderTarget(void)
171	CMatSystemSurface::DrawGetTextureMaterial(int)
172	CMatSystemSurface::SetInputContext(InputContextHandle_t__ *)
173	CMatSystemSurface::DrawSetSubTextureRGBA(int,int,int,unsigned char  const*,int,int)
174	CMatSystemSurface::DrawTexturedSubRectGradient(int,int,int,int,float,float,float,float,Color,Color,bool)
175	CMatSystemSurface::~CMatSystemSurface()
176	CMatSystemSurface::~CMatSystemSurface()
177	CMatSystemSurface::SupportsFontFeature(FontFeature_t)
178	CMatSystemSurface::InEngine(void)
179	CMatSystemSurface::IsInThink(unsigned int)
180	CMatSystemSurface::SetLanguage(char  const*)
181	CMatSystemSurface::GetLanguage(void)
182	CMatSystemSurface::ComputeTextWidth(wchar_t  const*)

Do you have the ID of it?
Or is 40 the ID? :P

A quick example:
Code:
void SetFontGlyphSet( DWORD font, const char* windowsFontName, int tall, int weight, int blur, int scanlines, int flags )
    {
        typedef void( __thiscall* oSetFontGlyphSet )( PVOID, DWORD, const char*, int, int, int, int, int, int, int );
		EmulateVirtual<oSetFontGlyphSet>( this, 72<-- THIS IS WHAT I NEED )( this, font,  windowsFontName, tall, weight, blur, scanlines, flags, NULL, NULL );
    }
Quote Originally Posted by xzackcc View Post
Do you have the ID of it?
Or is 40 the ID? :P

A quick example:
Code:
void SetFontGlyphSet( DWORD font, const char* windowsFontName, int tall, int weight, int blur, int scanlines, int flags )
    {
        typedef void( __thiscall* oSetFontGlyphSet )( PVOID, DWORD, const char*, int, int, int, int, int, int, int );
		EmulateVirtual<oSetFontGlyphSet>( this, 72<-- THIS IS WHAT I NEED )( this, font,  windowsFontName, tall, weight, blur, scanlines, flags, NULL, NULL );
    }
i know that you want the index of the vtable, i know what a vtable is, im not stupid. i will post back the id as soon as i find it.
I apologize if I offended you by my previous post(!)

Yep. These numbers on the left are the ID's. Thank you.
I just have another question, Sir.
Surface->DrawSetTextureRGBA(myTexture, (const unsigned char *), _w, _h, false, false);
How can I convert Color(255,255,255,255); to a const unsigned char * ?
Quote Originally Posted by xzackcc View Post
I apologize if I offended you by my previous post(!)

Yep. These numbers on the left are the ID's. Thank you.
I just have another question, Sir.
Surface->DrawSetTextureRGBA(myTexture, (const unsigned char *), _w, _h, false, false);
How can I convert Color(255,255,255,255); to a const unsigned char * ?
You did not offend me, and im sure you didn't mean it either.
why do you need to convert it from color to char?
As you can see here:
Code:
36	CMatSystemSurface::DrawSetTextureRGBA(int,unsigned char  const*,int,int)
I've used this tutorial to draw a simple texture on my screen:
###removed### (scroll down, to see the code)
He used m_bgColor(255,255,255,255); to apply a texture color .. How should I do that?
Quote Originally Posted by xzackcc View Post
As you can see here:
Code:
36	CMatSystemSurface::DrawSetTextureRGBA(int,unsigned char  const*,int,int)
I've used this tutorial to draw a simple texture on my screen:
~ ~ ~ url ~ ~ ~ (scroll down, to see the code)
He used m_bgColor(255,255,255,255); to apply a texture color .. How should I do that?
Do not bypass filters, they exist for a reason.
I don't want to bypass it.
I simply want to make this line of code work.

Therefore, what should I put in there? Any examples?
Quote Originally Posted by xzackcc View Post
I don't want to bypass it.
I simply want to make this line of code work.

Therefore, what should I put in there? Any examples?
The link filter exists for a reason, and you are bypassing it.

If you want viking to know about what you are talking about, either copy the content of the page and credit the original page with "uc" or tell him what to search in order to get to the page.
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us