Go Back   xda-developers > Kaiser > Kaiser general

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th August 2008, 03:21 PM
ycavan ycavan is offline
Senior Member
 
Join Date: Nov 2007
Posts: 96
Default

Quote:
Originally Posted by NuShrike View Post
I
This is not true during WM_CREATE/wndProc, so I wait until after the windows is created and ready for ShowWindow/UpdateWindow, then I do some GL init.
My opengl es init function is called after UpdateWindow(), so I'm still stumped as to why the surface still cannot be created... here's my winmain:

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;
Reply With Quote
Sponsored Links

  #2  
Old 8th August 2008, 04:41 PM
rfarnell rfarnell is offline
Senior Member
 
Join Date: Jan 2008
Posts: 137
Default

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 )?
Reply With Quote

  #3  
Old 8th August 2008, 08:38 PM
NuShrike's Avatar
NuShrike NuShrike is offline
Senior Member
 
Join Date: Sep 2007
Posts: 864
Default

Quote:
Originally Posted by ycavan View Post
My opengl es init function is called after UpdateWindow()
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..
Reply With Quote

  #4  
Old 11th August 2008, 09:34 PM
.dll .dll is offline
Junior Member
 
Join Date: Sep 2006
Posts: 2
Default

Quote:
Originally Posted by NuShrike View Post
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.
Here ftp.leafwireless.com Username: Mn62 Password:123456Mn in "HTC Rom" folder there is a diamond rom availible for download... dont know if this will be of any use!
Reply With Quote

  #5  
Old 12th August 2008, 01:25 AM
vj4's Avatar
vj4 vj4 is offline
Senior Member
 
Join Date: Apr 2007
Location: brighton
Posts: 247
Default

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!!!
Reply With Quote

  #6  
Old 12th August 2008, 08:45 AM
herg62123's Avatar
herg62123 herg62123 is offline
Senior Member
 
Join Date: Jul 2007
Location: Everywhere a htc phone is located
Posts: 1,786
Default

i remade htc ca driver and included omnia driver in it.

see if this works out better now.
Attached Files
File Type: cab HTC-CA-Kaiser-Drivers with omnia d3d driver.cab (711.1 KB, 941 views)

Last edited by herg62123; 12th August 2008 at 10:45 AM.. Reason: updated libgles_cm dll
Reply With Quote

  #7  
Old 12th August 2008, 12:24 PM
NuShrike's Avatar
NuShrike NuShrike is offline
Senior Member
 
Join Date: Sep 2007
Posts: 864
Default

Quote:
Originally Posted by herg62123 View Post
i remade htc ca driver and included omnia driver in it.

see if this works out better now.
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?
Reply With Quote

  #8  
Old 12th August 2008, 04:20 PM
herg62123's Avatar
herg62123 herg62123 is offline
Senior Member
 
Join Date: Jul 2007
Location: Everywhere a htc phone is located
Posts: 1,786
Default

Quote:
Originally Posted by NuShrike View Post
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?
i added ddraw cause on kaiser the ddraw.dll is a fake file like htc_d3dm.dll. it is just a refernce file on kaiser.

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..
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:21 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.