81 obj[loop].z=-((
rand()%30000/1000.0f)+10.0f);
82 obj[loop].spinzi=(
rand()%10000)/5000.0f-1.0f;
84 obj[loop].fi=0.05f+(
rand()%100)/1000.0f;
85 obj[loop].yi=0.001f+(
rand()%1000)/10000.0f;
98 for (loop=0; loop<
sizeof(Texture); loop++)
178 for (loop=0; loop<50; loop++)
190 for (loop=0; loop<50; loop++)
213 obj[loop].y-=
obj[loop].yi;
214 obj[loop].spinz+=
obj[loop].spinzi;
215 obj[loop].flap+=
obj[loop].fi;
217 if (
obj[loop].
y<-18.0f)
224 obj[loop].fi=-
obj[loop].fi;
265 static DWORD timer = 1;
#define RegCloseKey(hKey)
LRESULT WINAPI ScreenSaverProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
HGLRC InitOGLWindow(HWND hWnd)
BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
void InitOpenGL(GLsizei width, GLsizei height)
INT_PTR CALLBACK AboutProc(HWND hdlg, UINT msg, WPARAM wpm, LPARAM lpm)
BOOL WINAPI RegisterDialogClasses(HANDLE hInst)
GLAPI void GLAPIENTRY glClearDepth(GLclampd depth)
GLAPI void GLAPIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z)
GLAPI void GLAPIENTRY glTexCoord2f(GLfloat s, GLfloat t)
#define GL_TEXTURE_MIN_FILTER
GLAPI void GLAPIENTRY glDepthFunc(GLenum func)
GLAPI void GLAPIENTRY glEnable(GLenum cap)
GLAPI void GLAPIENTRY glHint(GLenum target, GLenum mode)
GLint GLint GLint GLint GLint x
GLAPI void GLAPIENTRY glLoadIdentity(void)
#define GL_LINEAR_MIPMAP_LINEAR
GLint GLint GLint GLint GLint GLint y
GLAPI void GLAPIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor)
#define GL_UNPACK_ALIGNMENT
GLAPI void GLAPIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
GLAPI void GLAPIENTRY glBindTexture(GLenum target, GLuint texture)
#define GL_COLOR_BUFFER_BIT
GLAPI void GLAPIENTRY glBegin(GLenum mode)
GLAPI void GLAPIENTRY glGenTextures(GLsizei n, GLuint *textures)
GLAPI void GLAPIENTRY glVertex3f(GLfloat x, GLfloat y, GLfloat z)
GLint GLint GLsizei GLsizei height
GLAPI void GLAPIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
GLAPI void GLAPIENTRY glEnd(void)
GLAPI void GLAPIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param)
#define GL_TEXTURE_MAG_FILTER
GLAPI void GLAPIENTRY glDisable(GLenum cap)
GLint GLint GLsizei width
GLAPI void GLAPIENTRY glPixelStorei(GLenum pname, GLint param)
#define GL_PERSPECTIVE_CORRECTION_HINT
#define GL_DEPTH_BUFFER_BIT
GLAPI void GLAPIENTRY glMatrixMode(GLenum mode)
GLAPI void GLAPIENTRY glShadeModel(GLenum mode)
GLAPI void GLAPIENTRY glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
GLAPI void GLAPIENTRY glFlush(void)
GLAPI void GLAPIENTRY glClear(GLbitfield mask)
#define gluBuild2DMipmaps
_Check_return_ int __cdecl rand(void)
#define REG_OPTION_NON_VOLATILE
static HGLRC(WINAPI *pwglCreateContextAttribsARB)(HDC hDC
LRESULT WINAPI DefScreenSaverProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
static PIXELFORMATDESCRIPTOR pfd
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
BOOL WINAPI wglDeleteContext(HGLRC hglrc)
HGLRC WINAPI wglCreateContext(HDC hdc)
BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
int WINAPI ChoosePixelFormat(_In_ HDC hdc, _In_ const PIXELFORMATDESCRIPTOR *ppfd)
BOOL WINAPI SetPixelFormat(_In_ HDC, _In_ int, _In_ const PIXELFORMATDESCRIPTOR *)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
#define PFD_SUPPORT_OPENGL
struct tagPIXELFORMATDESCRIPTOR PIXELFORMATDESCRIPTOR
int WINAPI DescribePixelFormat(_In_ HDC hdc, _In_ int iPixelFormat, _In_ UINT nBytes, _Out_writes_bytes_opt_(nBytes) LPPIXELFORMATDESCRIPTOR ppfd)
BOOL WINAPI SwapBuffers(HDC)
#define PFD_DRAW_TO_WINDOW
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
#define HKEY_CURRENT_USER
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
#define WM_CTLCOLORSTATIC
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
#define LR_CREATEDIBSECTION
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)