Hi,
here is a little purebasic conversion for people who are interested in doing
4KB intros using purebasic / opengl.
the original author of this idea is auld.
Code: Select all
; *** 4K Framework for PureBasic [Win]
; ***
; *** original framework by auld
; *** pb-conversion by benny!weltenkonstrukteur.de
; ***
IncludeFile #PB_Compiler_Home+"Examples\Sources - Advanced\OpenGL Cube\OpenGL.pbi"
Procedure do4KIntro()
glClear_(#GL_DEPTH_BUFFER_BIT | #GL_COLOR_BUFFER_BIT);
glRotatef_(0.5,1.0,1.0,1.0);
glBegin_(#GL_TRIANGLES);
glColor3f_(1.0,0.0,0.0);
glVertex3f_(0.0,-1.0,0.0);
glColor3f_(0.0,1.0,0.0);
glVertex3f_(1.0,1.0,0.0);
glColor3f_(0.0,0.0,1.0);
glVertex3f_(-1.0,1.0,0.0);
glEnd_();
EndProcedure
pfd.PIXELFORMATDESCRIPTOR
pfd\cColorBits = 32
pfd\cDepthBits = 32
pfd\dwFlags = #PFD_SUPPORT_OPENGL | #PFD_DOUBLEBUFFER
hDC = GetDC_ ( CreateWindow_("edit", 0, #WS_POPUP | #WS_VISIBLE | #WS_MAXIMIZE, 0, 0 ,0 ,0, 0 ,0 ,0, 0 ) )
SetPixelFormat_ ( hDC, ChoosePixelFormat_( hDC, pfd), pfd )
wglMakeCurrent_ ( hDC, wglCreateContext_(hDC) )
ShowCursor_(#False);
Repeat
glClear_ ( #GL_DEPTH_BUFFER_BIT | #GL_COLOR_BUFFER_BIT )
do4KIntro()
SwapBuffers_ ( hDC );
Until ( GetAsyncKeyState_ (#VK_ESCAPE) )
like Dropper for example the file get shrinked to 992 bytes (WindowsXP
only !!!). So still some bytes left for your ideas

You can download the un- / compressed executables at the following url:
http://www.weltenkonstrukteur.de/dl/4K_PBFW.zip
For more information about 4K-intros and optimizing tricks you can visit :
http://in4k.untergrund.net/index.php?title=Main_Page