Download Advanced 3D Game Programming with DirectX 9.0 by Peter Walsh PDF

By Peter Walsh

ISBN-10: 1556229682

ISBN-13: 9781556229688

Textual content is an replace to the past textual content, complicated 3D video game Programming utilizing DirectX 8.0; targeting implementation adjustments to DirectX 9.0. For programmers who're new to images and online game programming. Softcover. DLC: computing device games--Programming.

Show description

Read Online or Download Advanced 3D Game Programming with DirectX 9.0 PDF

Similar media books

Adweek (9 May 2016)

Assessment: The all-new Adweek positive factors information and data for advertising, media and ads execs that you just can’t locate anyplace else. each one factor contains profiles and interviews with best newsmakers, reviews of scorching advert campaigns, the newest traits in print, electronic and ads and masses extra.

Local Community in the Era of Social Media Technologies. A Global Approach

Social media applied sciences may also help attach neighborhood groups to the broader international. area people within the period of Social Media applied sciences introduces the event of bringing an area neighborhood to the realm. This ebook, with the version of Santa Cruz County, California, develops a really worldwide method of the topic.

The Media and Northern Ireland: Covering the Troubles

An exploration of the connection among the published media and political occasions in Northern eire. individuals study various concerns, together with the broadcasting ban, Ulster Unionism and British journalism, the Gibraltar killings and insurance of the clash via Dublin newshounds.

Additional resources for Advanced 3D Game Programming with DirectX 9.0

Example text

Class cWindow { protected: int m_width, m_height; HWND m_hWnd; std::string m_name; bool m_bActive; static cWindow* m_pGlobalWindow; public: cWindow( int width, int height, const char* name = "Default window name" ); ~cWindow(); virtual LRESULT WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); virtual void RegisterClass( WNDCLASSEX* pWc = NULL ); virtual void InitInstance(); HWND GetHWnd(); bool IsActive(); bool HasMessages(); eResult Pump(); static cWindow* GetMainWindow(); }; inline cWindow* MainWindow(); m_width, m_height Width and height of the client rectangle of the window.

Initially set to NULL. cWindow(…) Constructs a window object. You can only create one instance of this object; this is verified by setting the m_pGlobalWindow object. ~cWindow() The destructor destroys the window and sets the global window variable to NULL so that it cannot be accessed any longer. WndProc() Window procedure for the class. cpp. RegisterClass(…) Virtual function that registers the window class. This function can be overloaded in child classes to add functionality, such as a menu or different WndProc.

This is different from the width and height of the actual window. 44 m_hWnd Handle to the window. Use the public function GetHWnd to get access to it outside the class. m_name The name of the window used to construct the window class and window. m_bActive Boolean value; TRUE if the window is active (a window is active if it is currently in the foreground). m_pGlobalWindow Static variable that points to the single instantiation of a cWindow class for an application. Initially set to NULL. cWindow(…) Constructs a window object.

Download PDF sample

Rated 4.83 of 5 – based on 49 votes