You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgDirectDraw.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgDirectDraw.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__DIRECT__DRAW__H__INCLUDED__
|
|
#define __LG__DIRECT__DRAW__H__INCLUDED__
|
|
|
|
#include "LgDirectDrawDisplay.h"
|
|
|
|
/*
|
|
#define WINDOW_WIDTH 1024
|
|
#define WINDOW_HEIGHT 768
|
|
*/
|
|
|
|
#define HELPTEXT TEXT("Press Escape to quit.")
|
|
|
|
class CLgDirectDraw
|
|
{
|
|
public:
|
|
CLgDirectDraw();
|
|
virtual ~CLgDirectDraw();
|
|
|
|
public:
|
|
void OnWmSize( HWND hWnd, WPARAM wParam );
|
|
void OnWmDestroy();
|
|
void OnWmQueryNewPalette();
|
|
void OnWmPaint();
|
|
void OnWmMove();
|
|
|
|
public:
|
|
HRESULT InitDirectDraw( HWND hWnd );
|
|
VOID FreeDirectDraw();
|
|
HRESULT ProcessNextFrame( HWND hWnd );
|
|
HRESULT RestoreSurfaces();
|
|
HRESULT DisplayFrame();
|
|
// VOID UpdateSprite( HWND hWnd, SPRITE_STRUCT* pSprite, FLOAT fTimeDelta );
|
|
|
|
public:
|
|
BOOL OnIdle( HWND hWnd );
|
|
BOOL IsActive() { return m_bActive; }
|
|
|
|
private:
|
|
CLgDirectDrawDisplay m_Display;
|
|
// CLgDirectDrawSurface *m_pLogoSurface;
|
|
CLgDirectDrawSurface *m_pTextSurface;
|
|
|
|
private:
|
|
/*
|
|
SPRITE_STRUCT m_pSprite[NUM_SPRITES];
|
|
DWORD m_dwLastTick;
|
|
*/
|
|
BOOL m_bActive;
|
|
};
|
|
|
|
#endif
|