Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- #include <gl/gl.h>
- #include <gl/glu.h>
- #define sdf ,640,480
- #define n 40000
- #define O_O ()%
- #define uuu r
- #define m ,
- #define z (
- #define Z ))
- #define uba(x,y) x;gl##y;
- #define F(a,b,c,d) gl##a##c##b##c##d
- #define grh(a,b,c,d,e) gl##a##e##c;gl##b##e##d;
- #define wrh(a,b,c,d,e,f,g) a##g##c(e b##g##d f)
- #define fr(x) r[2000+(x)]
- #define U m 0
- #define bzu(x,a,b) *a##in(((x)*(r##b
- #define gzu(a) (a)))*(.2/a)
- #define fd(a,b,c) (c?sin(b):cos(b))*a
- #define O m f
- float a=0,b[n*3],*d,f=1,pZ=7;int c,*uuu=b;int main(float X,float*XX){memset(b,
- 0,n*12);fr(-1999)=DefWindowProc;fr(-1992)=XX;fr(-1991)=XX;fr(0) = wrh(Crea,
- Regis,Window,rClass(b),,m XX U m 1<<31 m 1<<31 sdf U U U U,te);fr(10) = GetDC(
- fr(0));wrh(Set,Choose,at,at(fr(10), b+800),fr(10) m,m b+100,PixelForm);wrh(,,
- MakeCurrent,CreateContext(fr(10)),fr(10) m,,wgl);grh(Vertex,,er(3, 0x1406, 0,
- b+1),Size(2),Point);fr(20)=0x0B70;grh(Dis,En,e(fr(20)+1),e(fr(20)^0x92),abl);
- wrh(Update,Show,ow,ow(fr(0), 1),fr(0)+,,Wind);grh(Viewport(0 U sdf);glMa,Frustum(
- f-2 O m-f O O m fr(20));glMa,e(fr(20)^0x1c71);glLoadIdentity();,e(fr(20)^
- 0x1c71-1);F(Enabl,Cli,e,ntState)(0x8074);,trixMod);wrh(whil,GetAsyncKeyStat,
- e,e(0x1b),!,,){srand(470);f+=.005;a+=sin(f)*sin(f)*.01+.001;grh(Bl,LoadId,dFunc(
- 1,1),tity(),en);gluLookAt(14 bzu(f,s,and) O_O gzu(100) ) m 14 bzu(f,s,and)
- O_O gzu(100)) m 14 bzu(f,s,and) O_O gzu(100) ) U U U U m 1 U);for(d=b,c=0;c<
- n*3;c++,d++){*d=(rand O_O 2?-1:1)bzu(a,s,and) O_O gzu(200))*(rand O_O z z rand
- O_O 2000)+1 Z *.01;*d*=(c%3)?1:.1;}grh(Colo,DrawAr,r4f(fd(fd(fd(fd(.2,f,1),f,1
- ),f,1),f,1)+.02,.05,fd(fd(fd(fd(.2,f,0),f,0),f,0),f,0)+.02 m 1),rays(0 U m n),);
- grh(Bl,LoadId,dFunc(0x302,0x303),tity(),en);grh(Beg,Colo,in(pZ),r4f(0 U U ,.08
- -fd(fd(.05,f,1),f,1)),);grh(V,V,x3f(-pZ m -pZ m -pZ*.25),x3f(pZ m -pZ m -pZ*.25
- ),erte);grh(V,V,x3f(pZ m pZ m -pZ*.25),x3f(-pZ m pZ m -pZ*.25),erte);grh(E,Flu,
- nd(),sh(),);wrh(while z Peek,Dispatch,age,age z b,d U U U m 1 Z,,Mess);}return.5;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement