English
C ++ Forum

Done: glOrtho fails?

 
- Page 1 -


Hello Sebastian, with this with XProfan 11 correctly performed View source becomes next to the Kubus a red line drawn - but not if one with the Prf2Cpp 2.0a + Borland 5.5 compiled. have You a idea Why the lying? (Types?)
CompileMarkSeparation
cls
var xx&=width(%hWnd)
var yy&=height(%hWnd)
ogl(init,%hWnd,0,0,0,0)
ogl(posmode,1)
ogl(clear)
ogl(color,3,0,0,3)
ogl(move,0,0,-5)
ogl(cuboid,1,1,1)
ogl(origin,0,0,0)
glMatrixMode(GL_PROJECTION)
ogl.ortho(0,yy&-1,xx&,-1,0-xx&,xx&)
ogl.line(10,10,200,100)
ogl(show)
waitInput
end

proc OGL.ORTHO

    PARAMETERS X&,Y&,XX&,YY&,Z&,ZZ&
    OGL(glLoadIdentity)
    OGL(glViewport,0,0,WIDTH(%HWND),HEIGHT(%HWND))
    DECLARE MEM#
    DIM MEM#,48
    FLOAT MEM#,0=X&,XX&,Y&,YY&,Z&,ZZ&
    OGL(glOrtho,LONG(MEM#,0 ),LONG(MEM#,4 ),LONG(MEM#,8 ),LONG(MEM#,12),LONG(MEM#,16),LONG(MEM#,20),LONG(MEM#,24),LONG(MEM#,28),LONG(MEM#,32),LONG(MEM#,36),LONG(MEM#,40),LONG(MEM#,44))
    DISPOSE MEM#

endproc

proc OGL.LINE

    PARAMETERS X!,Y!,XX!,YY!
    OGL(glBegin,1)
    OGL(glVertex3f,X!,Y!,0)
    OGL(glVertex3f,XX!,YY!,0)
    OGL(glEnd)

endproc


1.032 kB
Kurzbeschreibung: XProfan11
Hochgeladen:04/05/09
Downloadcounter156
Download
5 kB
Hochgeladen:04/05/09
Downloadcounter231
Download
307 kB
Kurzbeschreibung: prf2cpp2.0a
Hochgeladen:04/05/09
Downloadcounter118
Download
 
04/05/09  
 



 
- Page 1 -



CompileMarkSeparation
P2CPP: <USE_CALL_ST>
call(__cf1&,$1701)
P2CPP: </USE_CALL_ST&g
re>

would then To welchem c++-Source konvertiert go?
 
04/06/09  
 




Sebastian
König
iF

CompileMarkSeparation
P2CPP: <USE_CALL_ST>
call(__cf1&,$1701)
P2CPP: </USE_CALL_ST&g
re>

would then To welchem c++-Source konvertiert go?


Call_ST(l__cf1, 1, _L(0x1701L));

the ST standing for same thread, So one Call(), the without change in the context the aufrufenden Threads stattfindet.

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
04/06/09  
 



And if I z.B. by one Inline-ASM in the Inline-Cpp one CALL write, alights this then in the OGL-Thread?

i will simply each detour over Wrapperfunktionen bypass, if already into faster Calls transformed becomes.
 
04/06/09  
 



 
- Page 2 -



Sebastian
König
iF
And if I z.B. by one Inline-ASM in the Inline-Cpp one CALL write, alights this then in the OGL-Thread?

i will simply each detour over Wrapperfunktionen bypass, if already into faster Calls transformed becomes.

Yes, Inline-C++ Blöcke long always in the Profan-Thread (whom names use I intern ).

CConsiderate but, that You yourself with the usage of Inline-ASM inside the Inline-C++ Blocks (more or less) on a Compiler bind. at least Dev-C++/MinGW uses another Syntax as Microsoft and Borland.
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
04/06/09  
 



Have really only always I these distress the electoral between Syntax and performance or talk others only not above?

thanks Sebastian!

Topic Done
 
04/06/09  
 



Inline-C++? sound horny. How are the Please? might one there not the shebang-concept use, speak, The first row + 1 Leerzeile certainly whom Präprozessor? with CGI´s Yes zB right popular...
 
04/06/09  
 



for Inline-C has Sebastian imho neulig one Switch provided - means for code which not to C Translated becomes separate 1:1 übernommen becomes. Habs but too only on the Rande come along.
 
04/06/09  
 




Sebastian
König
iF
for Inline-C has Sebastian imho neulig one Switch provided - means for code which not to C Translated becomes separate 1:1 übernommen becomes. Habs but too only on the Rande come along.


very so is it, where it additional yet a Hilfestellung to that Access to variables with their XProfan-names. here time the suitable part from the Profan2Cpp-Help:

Profan2Cpp-Help
ex Profan2Cpp Version 2.0 is it possible, C++ code directly in one (X)Profan-Program einzubetten. everything, what with the special-comment INLINE_CPP eingekapselt is, becomes at Übersetzen directly in The begot .cpp-File übernommen. circa Profan-variables in this Code use, should tappt im dunkeln as PVAR(name) written go. example:
CompileMarkSeparation
One Szenario to application this Features are to that example with Using Profan2Cpp begot DLLs.


MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
04/06/09  
 



Ha, then knows I what z.B. I gladly had, inverse - means inlinePrf2CPP in the XProfan-code.
CompileMarkSeparation
and on the dearest as Konsolenanwendung which no keyboard-Eingriffe of user demanded.
 
04/06/09  
 




Sebastian
König
iF
Ha, then knows I what z.B. I gladly had, inverse - means inlinePrf2CPP in the XProfan-code.

(...)

and on the dearest as Konsolenanwendung which no keyboard-Eingriffe of user demanded.


For this see I unfortunately no good Possibility... sorry but to that Auslagern of individual performance-censorial things there Yes The Possibility, DLLs with Profan2Cpp to create.

with diversen Options can You Profan2Cpp incidentally right well over The Kommandozeile steer. next to whom Schaltern for Files and directories are z.B. -silent and -close. an list shows the Start with -h.

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
04/06/09  
 



sound still super, then liesse itself the Inline-Prf2CPP Perhaps by XPSE herzaubern.
 
04/06/09  
 



-falschpost-
 
04/08/09  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

13.039 Views

Untitledvor 0 min.
Sven Bader07/25/21
funkheld05/25/16
iF11/09/11

Themeninformationen



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