91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.23MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-25
  • 語言: 其他
  • 標簽: 控件??源碼??資源??

資源簡介

暴風雪公司*.MPQ通用文件查看器源碼

資源截圖

代碼片段和文件信息

#define?WIN32_LEAN_AND_MEAN

#include?
#include?
#include?“resource.h“
#include?“About.h“
#include?
#include?
#include?
#include?“blp.h“

extern?“C“?DWORD?IJGRead?(unsigned?char?*buf?unsigned?long?buflen?long?*w?long?*h?long?*bpp?unsigned?char?*destbuf);
extern?void?*malloc_func(const?size_t?size);
extern?void?free_func(void*?ptr);
extern?void?HorizFlip(char?*bufsrc?long?rowsize?long?numlines);
extern?void?RGB2BGR(char?*bufsrc?DWORD?srcsize);
extern?void?RGBA2BGRA(char?*bufsrc?DWORD?srcsize);
extern?DWORD?ResizePicture(char*?srcBuf?long?width?long?height?long?bpp?char*?destBuf?long?newwidth?long?newheight);
extern?void?RGB2BGR(char?*bufsrc?DWORD?srcsize);
extern?MyMPQ?gmpq;
extern?long?gLoadedItem;
extern?DWORD?currentlanguage;
extern?BOOL?bActive;
extern?char?szAppName[];


#define?FLAGWIDTH??33
#define?FLAGHEIGHT?25

#define?FLAGWIDTHf??33.0f
#define?FLAGHEIGHTf?25.0f

#define?EEGGS?44711


char?*aboutJPEGPic=NULL;
long?pwidth?pheight?pbpp;
float?flagPoints[FLAGWIDTH+1][FLAGHEIGHT+1][3];
float?wrapValue;
unsigned?int?texture;
HDC?g_HDC;
HGLRC?hRC;
BOOL?bfloating?=?FALSE?bDispEgg?=?FALSE;


void?aboutInitializeFlag()
{
int?xIdx;
int?yIdx;

for?(xIdx?=?0;?xIdx? {
for?(yIdx?=?0;?yIdx? {
flagPoints[xIdx][yIdx][0]?=?(float)xIdx;
flagPoints[xIdx][yIdx][1]?=?(float)yIdx;
flagPoints[xIdx][yIdx][2]?=?float(sin((((float)xIdx*FLAGWIDTHf)/360.0f)*3.14159f*2.0f));?
}
}
}


void?aboutDrawFlag()
{
int?xIdx;
int?yIdx;
float?texLeft;
float?texBottom;
float?texTop;
float?texRight;

glPushMatrix();
glBindTexture(GL_TEXTURE_2D?texture);
glBegin(GL_QUADS);

for?(xIdx?=?0;?xIdx? {
for?(yIdx?=?0;?yIdx? {
texLeft?=?float(xIdx)?/?(FLAGWIDTHf-1.0f);
texBottom?=?float(yIdx)?/?(FLAGHEIGHTf-2.0f);
texRight?=?float(xIdx+1)?/?(FLAGWIDTHf-1.0f);
texTop?=?float(yIdx+1)?/?(FLAGHEIGHTf-2.0f);

glTexCoord2f(?texLeft?texBottom);
glVertex3f(?flagPoints[xIdx][yIdx][0]?flagPoints[xIdx][yIdx][1]?flagPoints[xIdx][yIdx][2]?);

glTexCoord2f(?texRight?texBottom?);
glVertex3f(?flagPoints[xIdx+1][yIdx][0]?flagPoints[xIdx+1][yIdx][1]?flagPoints[xIdx+1][yIdx][2]?);

glTexCoord2f(?texRight?texTop?);
glVertex3f(?flagPoints[xIdx+1][yIdx+1][0]?flagPoints[xIdx+1][yIdx+1][1]?flagPoints[xIdx+1][yIdx+1][2]?);

glTexCoord2f(?texLeft?texTop?);
glVertex3f(?flagPoints[xIdx][yIdx+1][0]?flagPoints[xIdx][yIdx+1][1]?flagPoints[xIdx][yIdx+1][2]?);
}
}
glEnd();

for(?yIdx?=?0;?yIdx? {
wrapValue?=?flagPoints[FLAGWIDTH-1][yIdx][2];

for(?xIdx?=?FLAGWIDTH-1;?xIdx?>=?0;?xIdx--)
{
flagPoints[xIdx][yIdx][2]?=?flagPoints[xIdx-1][yIdx][2];
}

flagPoints[0][yIdx][2]?=?wrapValue;
}

glPopMatrix();
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????21630??2003-05-29?15:19??101.ico
?????文件???????53916??2003-05-25?01:56??wc3view0.jpg
?????文件???????10134??2003-05-29?15:19??12.ico
?????文件???????10134??2003-05-29?15:19??16.ico
?????文件???????10134??2003-05-29?15:19??4.ico
?????文件???????10134??2003-05-29?15:19??5.ico
?????文件???????10134??2003-05-29?15:19??7.ico
?????文件???????10134??2003-05-29?15:19??9.ico
?????文件???????11468??2003-09-06?20:06??About.cpp
?????文件?????????236??2003-05-26?23:22??About.h
?????文件???????15786??2003-07-23?01:52??aide.html
?????文件???????17429??2003-08-03?14:34??ajuda.html
?????文件????????7821??2003-09-09?19:52??blp.cpp
?????文件????????2404??2003-08-29?18:42??blp.h
?????文件???????18321??1995-10-18?16:18??COPYING.txt
?????文件???????19947??2002-06-28?12:35??COPYING-fr.txt
?????文件???????25366??2003-08-30?19:42??COPYING-ger.txt
?????文件???????20220??2003-08-14?00:57??COPYING-port.txt
?????文件???????87674??2003-09-06?20:04??eeggs.jpg
?????文件???????96879??2003-05-30?19:19??eeggs0.jpg
?????文件??????196662??2003-08-11?00:29??Font.bmp
?????文件???????14304??2003-07-02?19:51??help.html
?????文件???????16094??2003-08-27?18:09??hilfe.html
?????文件????????1078??2003-09-09?19:27??icon1.ico
?????文件????????1078??2003-09-09?19:27??icon2.ico
?????文件??????229170??2003-05-22?01:18??jpeg.lib
?????文件??????245688??2003-09-11?13:23??main.cpp
?????文件????????4104??2003-05-22?20:47??math.h
?????文件????????1371??2003-07-16?18:20??math3d.cpp
?????文件?????????395??2003-07-16?18:20??math3d.h
?????文件??????????78??2003-07-16?18:18??MathUtils.h
............此處省略30個文件信息

評論

共有 條評論