| |
|
|
- 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?) CompileMarkSeparationcls
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
|
|
|
| |
|
|
|
| |
|
- Page 1 - |
|
| |
|
| |
|
|
|
Sebastian König | iF
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. |
|
|
| |
|
|
| |
|
- 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 |
|
|
| |
|
|
|
| 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... |
|
|
| |
|
|
|
| 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. |
|
|
| |
|
|
|
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: CompileMarkSeparationOne 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. |
|
|
| |
|
|
|
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. |
|
|
| |
|
|
|
| |
|
| |
|
|