Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (dBc), 18,004 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using openGL or Direct X in Lite C ? #264619
05/07/09 10:11
05/07/09 10:11
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
Has anyone tried or used openGL in lite-c or even directX.

I did have a look at the examples but they use Lite-C in legacy mode to demo that. i would like to use something simple like this:

Code:
#include <acknex.h>
#include <default.c>
#include <windows.h>
#include <opengl.h>


void main ()
{
	 glClear(GL_COLOR_BUFFER_BIT);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    gluPerspective(40,1,1,50);
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();	    
    gluLookAt(0,0,10,0,0,0,0,1,0);

    glBegin(GL_TRIANGLES);
    glColor3f(1,0,0);
    glVertex3f(-1,0,0);
    glVertex3f(1,0,0);
    glVertex3f(0,1,0);
    glEnd();
	 
	 wait(5);    

	
}


This does compile properly but no output on running.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Using openGL or Direct X in Lite C ? [Re: delinkx] #265608
05/13/09 10:28
05/13/09 10:28
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
anyone ?


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Using openGL or Direct X in Lite C ? [Re: delinkx] #265922
05/15/09 05:40
05/15/09 05:40
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
maybe JCL can give me a light on this ?


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1