示例#1
0
文件: gpp_lua.cpp 项目: ttynsmr/gpps
// args: bitmap pointer, mode, unknown, unknown, unknown
int __stdcall GppDraw( unsigned char* pImg, int mode, int unknown1, int unknown2, int unknown3 )
{
	pgpplua->GppDraw( pImg, mode, unknown1, unknown2, unknown3 );

	switch( mode )
	{
	case 0:
		image.copyTo( pImg, 0 );
		break;
	case 1:
		image.copyTo( pImg, 1 );
		break;
	case 2:
		image.copyTo( pImg, 2 );
		break;
	}

	return 0;
}
示例#2
0
// args: bitmap pointer, mode, unknown, unknown, unknown
int __stdcall GppDraw( unsigned char* pImg, int mode, int unknown1, int unknown2, int unknown3 )
{
	switch( mode )
	{
	case 0:
		image.setPixel( 1, 1, !image.getPixel( 1, 1 ) );
		image.copyTo( pImg, 0 );
		break;
	case 1:
		image.setPixel( 2, 2, !image.getPixel( 2, 2 ) );
		image.copyTo( pImg, 1 );
		break;
	case 2:
		image.setPixel( 3, 3, !image.getPixel( 3, 3 ) );
		image.copyTo( pImg, 2 );
		break;
	}

	return 0;
}