English
Source / code snippets

Ogl Opengl Texturiert trapeze

 
On inquire [...]  OGL trapeze OpenGL Texturiert:
CompileMarkSeparation
 {$cleq}
cls
ogl("init",hWnd,1,1,1,0)
float x=-1,y=-1,xx=1,yy=1,v=0.5
long hPic=create("hPic",0,"&DSKBMP")
long tex=ogl("getTextureBmp",hPic,3)
showMax

while 1

    ogl("clear")
    ogl("move",0,0,-3)
    ogl("rotate",0,getTickCount*0.01,0)
    ogl("texture",1,10)
    ogl("color",1,1,1,1)
    ogl("glBegin",GL_QUADS)
    oGL("glTexCoord2f",0.0,0.0)
    ogl("glVertex3f",x,y,)
    oGL("glTexCoord2f",1.0,0.0)
    ogl("glVertex3f",xx,y,)
    oGL("glTexCoord2f",1.0,1.0)
    ogl("glVertex3f",xx+v,yy,)
    oGL("glTexCoord2f",0.0,1.0)
    ogl("glVertex3f",x+v,yy,)
    ogl("glEnd")
    ogl("show")

wend

end
or.:
CompileMarkSeparation
cls
ogl("init",%hWnd,1,1,1,0)
var x!=-1
var y!=-1
var xx!=1
var yy!=1
var v!=0.5
var hPic&=create("HPIC",0,"&DSKBMP")
var tex&=ogl("getTextureBmp",hPic&,3)
showMax

while 1

    ogl("clear")
    ogl("move",0,0,-3)
    ogl("rotate",0,&getTickCount*0.01,0)
    ogl("texture",1,10)
    ogl("color",1,1,1,1)
    ogl("glBegin",7)
    oGL("glTexCoord2f",0.0,0.0)
    ogl("glVertex3f",x!,y!,0)
    oGL("glTexCoord2f",1.0,0.0)
    ogl("glVertex3f",xx!,y!,0)
    oGL("glTexCoord2f",1.0,1.0)
    ogl("glVertex3f",xx!+v!,yy!,0)
    oGL("glTexCoord2f",0.0,1.0)
    ogl("glVertex3f",x!+v!,yy!,0)
    ogl("glEnd")
    ogl("show")

wend

end

431 kB
Hochgeladen:03/15/10
Downloadcounter139
Download
 
03/15/10  
 




Jörg
Sellmeyer
Hm - this is but one Parallelogramm and no trapeze...
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/15/10  
 



Jupp, there should one -v! - holds The thrill upright.
 
03/15/10  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.324 Views

Untitledvor 0 min.
H.Brill10/29/23
Tango10/30/21
Sven Bader10/14/21
Normann Strübli07/31/20
More...

Themeninformationen

this Topic has 2 subscriber:

iF (2x)
Jörg Sellmeyer (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie