亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? openlg.txt

?? * first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo) over it u add this
?? TXT
字號:
Tutorials > OpenGL


Lambert

ok people this is my first tutorial ever 8-)
this tutorial will try and show you how to make your very own vac proof openGL wrapper with Lambert :)
its not much but its a start :)

you will need a C++ compiler for this.
i made and compiled this in Microsoft Visual C++ 6.0
but it should work with other C++ compilers

ok lets get started

start a new win32 Dynamic-Link Library (DLL) and call it what ever you want. you want it to be an empty dll project if it asks you.

right now you want to create a new source file (CPP) in are project and call it "main.ccp" just to keep it simple. now we are going to add are first bit of code to are project :)

we are going to be using OpenGL so it is a good idea to add the library抯 for OpenGL to are project :) so at the top of are "main.ccp" file we add:

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glaux.lib ")

this tells are compile that we want to use these library抯 in are project. ok now that we have added are OpenGL library抯 we can include some headers to are project, so add to are "main.ccp" file:

#include 
#include 
#include 
#include 

ok this adds some header files to are project that we need for are OpenGL and windows fuctions.

right that is are "main.ccp" file done for now :) ok it does not have much in it yet but we will come back to that in a wee bit :)

ok now we need to add another file to are project. this file has lots of "writing" in it and i will save you from copying and pasting it from here and into your project so right click and save target as on [url]http://ploughpro.users.btopenworld.com/files/hack.def[/url]

it is only a small file so when you have it put it in the folder that you project is in and add it to your project :)

this file called "hack.def" is full of lot of OpenGL exports. if we want to "hook" a OpenGL function this will be the place to do it :)

ok now in this file we want to find where it says "glVertex3f" coz we want to hook it :) when you find it add this to the end of it "=MYglVertex3f" so now the line will look like this "glVertex3f=MYglVertex3f". wow you have just hooked you first OpenGL function :D
what this has done is it has pointed "glVertex3f" to a function in are DLL file and now we can play around with it 8-)

ok the "=MYglVertex3f" bit means that we are pointing it to a function called "MYglVertex3f" in are project so we want to go back to are "main.ccp" file and add this code to it:

void __stdcall MYglVertex3f(GLfloat x, GLfloat y, GLfloat z)
{
	glColor3f(1.0f,1.0f,1.0f);
	glVertex3f(x,y,z);
}

I will explain what this does now. this means we have made a function called "MyglVertex3f". when a program calls glVertex3f it also sends 3 values to it and they are called x,y,z. we dont need to pay much attention to them yet.

Half-Life calls this function to do things like add shadows to players and a few other things. so if we set the color to white then the players shadows will be white making them see able in dark area抯 on a map :D this is called Lambert.

we set the color to white be doing this: "glColor3f(1.0f,1.0f,1.0f);"
glColor3f takes 3 values (RGB) the first is the red value, second green and third is blue. the values  range from 0.0 to 1.0
if all 3 values are 1.0 it is white and if all 3 are 0.0 it is black. you can play around with these values later to see what i mean :)

after we set are color to white we want to call the real glVertex3f function so it all works :) this is done be doing "glVertex3f(x,y,z);" we also pass are 3 values to it so it all works.

right now we need to add one more thing to the bottom of are "main.ccp" file so are this:

BOOL __stdcall DllMain(HANDLE hInst, DWORD reason, LPVOID p)
{
	if (reason == DLL_PROCESS_ATTACH)  
	{
		//if you need to init anything it would be done here
	}
	return TRUE;
}

this is the first function that is called when the dll is loaded. at the moment we dont need to do any thing with this. sorry i forgot this the first time i typed up this tutorial lol

ok now that you have done all that you can compile your project and you should get a nice error free DLL file :)

right how to use your hack in counter-strike :) you need to download the OGC OpenGL Load. you can get this from the ogc web site or you can download it from [url]http://ploughpro.users.btopenworld.com/files/OGC_OpenGL_Loader.zip[/url] rename your DLL to "Xqz2.dll" and put it in the ogc loader folder and start "gl-loader.exe" and when you get into a game you should have Lambert :)

if you have any problems just ask on the forum and I will try and help :)
[url]http://script0rz.cjb.net/[/url]
I wish you all the best luck with it

you can download the project if you want from [url]http://ploughpro.users.btopenworld.com/files/OpenGL_Wrapper_Lambert.zip[/url]

Plough




Toggle Key

hi people :)

ok in this tutorial i will try and show you how to add a toggle key to your hack. i will be continuing from my first opengl tutorial and adding a toggle key for Lambert

ok lets get started :)

we are going to use "glViewport" to check when a key is being pressed. so first thing we need to do is hook this function. we do this by going to are "Hack.def" file and finding "glViewport" in the list. we then add "=MYglViewport" after it so it now looks like "glViewport=MYglViewport"

once we have done that we go back to are "main.ccp" file. First thing we do here is add two bool variables (these are true/false variables), so at the top of are "main.ccp" file we add:

bool Lambert = false;
bool Last_Key = false;

this makes two variables called "Lambert" and "Last_Key" and sets there value to "false"

ok now we go down to are hooked "glVertex3f" function and we need to add some code to it:

void __stdcall MYglVertex3f(GLfloat x, GLfloat y, GLfloat z)
{
	if(Lambert == true)
	{
		glColor3f(1.0f,1.0f,1.0f);
	}
	glVertex3f(x,y,z);
}

we have added an if statement. this means when are variable "Lambert" equals "true" color the models white other wise dont.

ok now we need to add are hooked "glViewport" function :) so at the bottom of are "main.ccp" file we add:

void __stdcall MYglViewport(GLint x, GLint y, GLsizei width, GLsizei height)		
{
	if((GetAsyncKeyState(VK_END) < 0) && !Last_Key)
	{
		Lambert = !Lambert;
		Last_Key = true;
	}
	else if(!(GetAsyncKeyState(VK_END) < 0))
	{
		Last_Key = false;
	}
	glViewport(x,y,width,height);
}

ok this is are hooked "glViewport" function. "glViewport" takes 4 values but wont dont need to do any thing to them so we pass them along to the real "glViewport" by doing "glViewport(x,y,width,height);". right now in the middle of that we have are code to check if are key is pressed down or not. we do this with a function called "GetAsyncKeyState" and the key we are checking for is "End". If the key is pressed down and "Last_Key" equals "false" we change are variable "Lambert" to its opposite (if Lambert is true it would be come false) and we set "Last_Key" to true. We do this so that we dont switch Lambert on and off from just one key press. So the user needs to lift the "End" key up before he can change it again.


you can find out more about "GetAsyncKeyState" function on the Microsoft site.
if you have any problems with any thing just post below and i will try and help. post your code as well to make it easier for me to help you with.


hope you all do well with this and I hope I have not forgot some thing again this time :)

you can get the source code and the compiled version of this tutorial at [url]http://ploughpro.users.btopenworld.com/files/OpenGL_Wrapper_Lambert.zip[/url]

Plough

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区av在线| 国产欧美一区二区精品性色超碰| 99视频热这里只有精品免费| 九九久久精品视频 | 国产成a人亚洲精品| 久久成人麻豆午夜电影| 日韩国产欧美三级| 琪琪久久久久日韩精品| 日韩影院精彩在线| 极品瑜伽女神91| 国产乱人伦偷精品视频免下载 | 欧美浪妇xxxx高跟鞋交| 国产精品美女久久久久aⅴ国产馆| 精品久久久久久综合日本欧美| 欧美精品一二三区| 欧美日韩黄色影视| 日韩视频不卡中文| 精品福利一区二区三区| 国产视频一区在线观看| 中文字幕在线观看一区| 一区二区三区四区视频精品免费| 夜夜爽夜夜爽精品视频| 日韩av网站在线观看| 麻豆免费精品视频| 丰满少妇久久久久久久| 色综合色综合色综合色综合色综合| 色综合久久久久综合99| 欧美日韩成人一区| wwwwww.欧美系列| 国产欧美va欧美不卡在线| 日韩伦理av电影| 午夜婷婷国产麻豆精品| 精品无人码麻豆乱码1区2区| 国产99久久久久久免费看农村| eeuss鲁片一区二区三区| 欧美丝袜丝nylons| 亚洲精品一区二区三区在线观看 | 国产亚洲欧洲997久久综合 | 亚洲国产精品综合小说图片区| 日韩av电影天堂| 国产成人激情av| 国产日韩欧美一区二区三区乱码 | 中文字幕一区二区三区四区不卡| 亚洲人精品一区| 青青草91视频| 国产91精品欧美| 欧美另类z0zxhd电影| 亚洲精品一区二区三区在线观看| 综合网在线视频| 免费精品99久久国产综合精品| 国产精品美女久久久久久2018| 一区二区三区成人| 久久精品噜噜噜成人av农村| 岛国av在线一区| 在线成人小视频| 中文字幕一区二区三区在线不卡 | 国产.欧美.日韩| 欧美一级免费观看| 亚洲三级在线看| 国产一区二区在线影院| 欧美亚洲综合网| 中文字幕av一区 二区| 欧美aaa在线| 色悠悠亚洲一区二区| 久久综合九色综合欧美98 | 欧美三级三级三级爽爽爽| 91尤物视频在线观看| 日韩免费视频线观看| 亚洲日本免费电影| 国产一区二区三区日韩| 欧美日韩免费电影| 亚洲欧美一区二区视频| 激情综合色播五月| 欧美亚洲综合网| 国产精品久久久久四虎| 麻豆91免费看| 欧美日韩色一区| 日韩伦理电影网| 成人av免费在线播放| 精品国产一区二区精华| 亚洲福利视频导航| 99久久精品免费精品国产| 久久在线观看免费| 日本中文一区二区三区| 欧美三级蜜桃2在线观看| 中文字幕一区二区三区不卡在线| 狠狠色狠狠色综合| 日韩精品一区在线观看| 婷婷国产v国产偷v亚洲高清| 色偷偷久久一区二区三区| 亚洲国产精品成人综合色在线婷婷| 精品一区二区免费视频| 555www色欧美视频| 天堂va蜜桃一区二区三区 | 国产视频一区在线播放| 国产麻豆成人精品| 亚洲精品一区二区三区福利| 日本亚洲免费观看| 欧美肥妇free| 奇米四色…亚洲| 日韩一区二区三区三四区视频在线观看| 亚洲午夜在线视频| 精品视频999| 五月综合激情网| 欧美精品久久99| 日本亚洲天堂网| 日韩欧美在线123| 看片的网站亚洲| 久久精子c满五个校花| 国产一区啦啦啦在线观看| 国产亚洲短视频| 成人av资源网站| 亚洲精品高清在线观看| 欧洲精品一区二区三区在线观看| 一区二区在线观看免费视频播放| 日本黄色一区二区| 五月婷婷综合激情| 日韩一区二区三区观看| 激情图区综合网| 中文字幕欧美三区| 色综合久久中文综合久久97| 亚洲欧美电影院| 欧美日韩国产一区| 久久av中文字幕片| 国产欧美日韩麻豆91| 91视频免费观看| 五月激情综合色| 精品99999| 97久久精品人人澡人人爽| 亚洲资源在线观看| 日韩区在线观看| 国产福利一区二区| 亚洲欧美精品午睡沙发| 欧美日韩美少妇| 国产综合色视频| 亚洲三级免费观看| 91麻豆精品国产91久久久使用方法| 麻豆91在线播放免费| 国产精品成人免费精品自在线观看| 色欲综合视频天天天| 日本视频一区二区三区| 国产亚洲一区字幕| 欧美又粗又大又爽| 另类欧美日韩国产在线| 中文天堂在线一区| 欧美天堂亚洲电影院在线播放| 国产精品系列在线| 国产欧美一区二区三区在线老狼| 最好看的中文字幕久久| 亚洲视频图片小说| 337p粉嫩大胆色噜噜噜噜亚洲| 在线观看视频91| 另类小说色综合网站| 中文字幕在线播放不卡一区| 欧美日韩一区中文字幕| 国产一区二区日韩精品| 一级中文字幕一区二区| 欧美成人精品福利| 色香蕉成人二区免费| 国产自产v一区二区三区c| 国产一区二区三区久久久| 亚洲另类春色国产| 精品国产一区a| 欧美色图在线观看| 懂色一区二区三区免费观看| 日韩中文字幕麻豆| 自拍偷拍亚洲综合| 2021久久国产精品不只是精品| 欧洲一区在线观看| 成人高清视频免费观看| 久久国产精品色婷婷| 亚洲超碰精品一区二区| 国产精品水嫩水嫩| xf在线a精品一区二区视频网站| 欧美日韩另类一区| 99re在线视频这里只有精品| 国产美女久久久久| 亚洲一区av在线| 欧美日韩在线直播| 午夜视频一区二区| √…a在线天堂一区| 精品久久久久久亚洲综合网| 欧美亚洲高清一区| www.亚洲免费av| 国产成人精品三级麻豆| 国产综合色视频| 捆绑变态av一区二区三区| 亚洲成人免费视频| 亚洲综合免费观看高清完整版| 中文在线资源观看网站视频免费不卡| 精品久久五月天| 日韩亚洲欧美高清| 5858s免费视频成人| 欧美日韩国产123区| 欧美在线观看视频一区二区| 99精品欧美一区二区三区小说 | 一区二区国产盗摄色噜噜| 国产精品无码永久免费888| 久久欧美一区二区| 日韩欧美一级精品久久|