|
2010-12-14
, 21:18
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#862
|
|
2010-12-14
, 21:41
|
|
Posts: 397 |
Thanked: 241 times |
Joined on Mar 2010
@ Melbourne, Australia
|
#863
|
Driver has graphical problem on preenv 0.1.3
no any error in terminal...
The Following User Says Thank You to travla For This Useful Post: | ||
|
2010-12-15
, 10:34
|
Posts: 58 |
Thanked: 28 times |
Joined on Nov 2010
|
#864
|
Send them to Gitorious, to me ( maemo at javispedro dot com ) or attach them here.
file:sdlgl.c /* Including math.h is not bad. It may become useful somehow */ #include <math.h> /* what about establishing a surface? */ SDL_Surface *surface; /* variable context, better or worse? */ /* perspective replacement for opengles? */ void gluPerspective(double fovy,double aspect,double zNear,double zFar) { double xmin,xmax,ymin,ymax; ymax = zNear * tan(fovy * M_PI / 360); ymin=-ymax; xmin=ymin*aspect; xmax=ymax*aspect; glFrustumf(xmin,xmax,ymin,ymax,zNear,zFar); } /* defining screen resolution? */ #define SCREEN_WIDTH 800 #define SCREEN_HEIGHT 480 #define SCREEN_BPP 16 int resizeWindow(int width,int height) { GLfloat ratio; if(height==0) height =1; ratio=(GLfloat)width/(GLfloat)height; glViewport(0,0,(GLsizei)width,(GLsizei)height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0f,ratio,0.1f,100.0f); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); return(1); } /* a function for later use */ int initGL(GLvoid) { static int gles_init ... SDL_GLES_MakeCurrent(context); /* maybe some applications require background color and smoothing? */ glShadeModel(GL_SMOOTH); glClearColor(0.0f,0.0f,0.0f,0.0f); glHint(GL_PERSPECTIVE_CORRECTION,GL_NICEST); glEnableClientState(GL_VERTEX_ARRAY); return(1); } /* buffer cleaning might be needed */ glClear(GL_COLOR_BUFFER_BIT);
SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 ); SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 ); SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 ); SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 ); SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
/* Using additional function */ int FilterEvents(const SDL_Event *event) { static int boycott = 1; /* This quit event signals the closing of the window */ if ( (event->type == SDL_QUIT) && boycott ) { printf("Quit event filtered out -- try again.\n"); boycott = 0; return(0); } if ( event->type == SDL_MOUSEMOTION ) { printf("Mouse moved to (%d,%d)\n", event->motion.x, event->motion.y); return(0); /* Drop it, we've handled it */ } return(1); } SDL_SetEventFilter(FilterEvents);
|
2010-12-15
, 11:11
|
|
Posts: 870 |
Thanked: 133 times |
Joined on Aug 2010
|
#865
|
|
2010-12-15
, 14:28
|
|
Posts: 233 |
Thanked: 220 times |
Joined on Jan 2010
@ Hungary
|
#866
|
Did you try the driver.ini workaround per the wiki?
http://wiki.maemo.org/Preenv/FAQ#How...Driver_working
I only have driver working with Preenv 0.1.1, but had to add a driver.ini file (with extra linefeed) to eliminate corrupted gaphics issue.
|
2010-12-15
, 16:04
|
|
Posts: 61 |
Thanked: 13 times |
Joined on Mar 2010
|
#867
|
|
2010-12-15
, 20:35
|
Posts: 75 |
Thanked: 13 times |
Joined on Oct 2010
|
#868
|
|
2010-12-15
, 21:17
|
|
Posts: 511 |
Thanked: 128 times |
Joined on Aug 2010
@ Trinidad and Tobago
|
#869
|
is there gonna be an update soon? I really wanna play that gangsta game
|
2010-12-15
, 21:19
|
|
Posts: 511 |
Thanked: 128 times |
Joined on Aug 2010
@ Trinidad and Tobago
|
#870
|
Tags |
games, multi touch, palm pre, preenv, profile, reach page 250?, speed, yesssss |
Thread Tools | |
|
no any error in terminal...
Nokia N950 - PR1.3
OpenSUSE 12.2 / Windows 8