|
|||||||
| Register | FAQ | XDA-Portal | XDA-Wiki | Device database | Donate! | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
Code:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
MSG msg; //This is the message variable for the message loop
WNDCLASS wc; /*This structure will hold some init values for our window*/
hInst = hInstance; // Initialization of our global variable
bool done = false;
/*This block of code is to ensure that the user only can run one
instance of the application. First we search for a window with the
same class name, if found, we will focus it and return*/
if(hWnd = FindWindow(szAppName, szAppName))
{
/* Set focus to foremost child window. The "| 0x01" is used to
bring any owned windows to the foreground and activate them.*/
SetForegroundWindow((HWND)((ULONG) hWnd | 0x00000001));
return 0;
}
wc.style = CS_HREDRAW | CS_VREDRAW; /*Will force a redraw
if the window is resized, both horizontally or vertically*/
wc.lpfnWndProc = (WNDPROC) WndProc; /*this is a function pointer,
to tell the OS what function should call when a message needs to be
processed*/
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance, NULL);//Load default icon
wc.hCursor = 0; // Default cursor
wc.hbrBackground = 0; //We don't care about the background color
wc.lpszMenuName = NULL; //This application does not have a menu
wc.lpszClassName = szAppName; /*Important, here we must fill the
application class name (the class name is not the same than the
caption of the window, but many times they are the same)*/
//Before creating the window, we must register this new window class
if(!RegisterClass(&wc))
return false;
hWnd=CreateWindow(szAppName, //Class Name
szAppName, //Caption string
WS_VISIBLE,//Window style
CW_USEDEFAULT,CW_USEDEFAULT,//Starting [x,y] pos.
CW_USEDEFAULT,CW_USEDEFAULT, //Width and height
NULL, NULL, //Parent window and menu handle
hInst, NULL); /*Instance handle. Custom value to
pass in the creation with the WM_CREATE message*/
if(!hWnd) return false;
//Create our timer
timer = new Timer();
//Bring the window to front, focus it and refresh it
SetWindowText(hWnd, L"OpenGLES");
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
if(!InitOGLES()) //OpenGL ES Initialization
{
MessageBox(hWnd,L"OpenGL ES init error.",L"Error",MB_OK | MB_ICONERROR);
return false;
}
//Message Loop
while(!done)
{
if(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
if(msg.message==WM_QUIT)
done = true;
else
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
else
{
Render();
timer->UpdateTimer(); //update the timer
}
}
//Clean up all
Clean();
delete timer;
DestroyWindow(hWnd);
UnregisterClass(szAppName, hInst);
return 0;
|
| Sponsored Links |
|
#2
|
|||
|
|||
|
I was comparing the Kaiser against the Touch Diamond, the iPhone and the Nokia N95 and spotted that the Touch Diamond had a different GL rendering engine here:
http://snipurl.com/3cxq6 [www_glbenchmark_com] The Touch Diamond refers to a Q3Dimension MSM7500W 01.02.03 0 5.1.2 Is this anything significant? Is this version compatible/portable to the Kaiser (usually Q3Dimension MSM7500 01.02.01 0 4.0.0 )? |
|
#3
|
||||
|
||||
|
Continued in relevant thread.
rfarnell: probably just more updates/improvements to ahi2dati.dll since HTC now seems encouraged to work on their graphics drivers in order to make TouchFlo3D work better. A relevant copy of the ahi2dati.dll or rom dump would help HTC-CA may be bring that version to Kaisers. Still silly now since AMD/ATI left the handheld market so this is the last Imageon hardware. Boy, betting on the Qualcomm MSM platform was sure a loosing bet in even more ways now. Last edited by NuShrike; 8th August 2008 at 08:43 PM.. |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
||||
|
||||
|
ok im sure you will hear about it soon just tested the samsung drivers work ok lights i feel was slower but 3d text is readable but didnt seem 3d
__________________
YO YO!!! Flash flash flash Radio 1.58.16.27 4GB micro sd Garmin xt. ultimatelaunch today screen You guys r the dog's thanks for all your help with the tytn2/kaiser not worked out the differance yet lol im still a noob And the legend that is the wizard!! long live wiz200!!! |
|
#6
|
||||
|
||||
|
i remade htc ca driver and included omnia driver in it.
see if this works out better now. Last edited by herg62123; 12th August 2008 at 10:45 AM.. Reason: updated libgles_cm dll |
|
#7
|
||||
|
||||
|
You added a lot of unrelated stuff and unused stuff such as GAPI, HTCAPI, netcf 2.0, ddraw, and you swapped out the carefully selected libgles_cm.dll from the KS20 with something else. Can you detail the reason behind these choices?
|
|
#8
|
||||
|
||||
|
Quote:
htcapi is needed to help out opera 9.5 and flash animations. netcfd3dm2.0 on kaiser is weak and is needed for d3dm structure to work with netcf and the omnia driver. d3dm is the same as netcf2.0 there is another file that starts with a letter g, it is needed to run 3d games like call of duty 2 and doom for ppc. the new libgles_cm.dll is optimized to handle more than previous file. i think i covered them all. if i missed somethink let me know. UPDATE FOR FILE CHANGE: text3d is readable, d3ddemo is now closeable as well runs quickly, lights works perfect, triangles now shows 68 on average fps Last edited by herg62123; 12th August 2008 at 04:57 PM.. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|