... Tables 3- D Coordinate Systems and Projections Even if we have no interest in creating 3- D games, we must understand the basic concepts of a 3- D coordinate system, because everything we do in Direct3D ... in Direct3D). After understanding 3- D coordinate systems, the next step to explore is how they present 3- D objects to our 2-D screen. Fortunately, all the hard mathematical work...
Ngày tải lên: 12/08/2014, 20:22
... endl; Car car3; car3.IncreaseSpeed(200); car3.TurnRight(270); cout << "Car3: " << car3.GetSpeed() // 200 << " degrees, " << car3.GetDirection() ... "Cell.h" void main() { Link pCell3 = new Cell (3, NULL); Link pCell2 = new Cell(2, pCell3); Link pCell1 = new Cell(1, pCell2); } Chapter 1 [ 35 ] A global variable is dened outside .....
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 3 pdf
... function by sending the message from the view to the document. RingView.cpp void CRingView::OnLButtonDown(UINT nFlags, CPoint point) { CRingDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); pDoc->MouseDown(point); ... tmDefaultChar; TCHAR tmBreakChar; BYTE tmItalic; BYTE tmUnderlined; BYTE tmStruckOut; BYTE tmPitchAndFamily; BYTE tmCharSet; } TEXTMETRIC, *PTEXTMETRIC; BOO...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 6 docx
... CreateFigure(iId); } } The Document Class CDrawDoc is the document class. Its task is to accept mouse and keyboard input from the CDrawView view objects, to manage the document's data, to ... handle scroll movements. Its only eld m_pDrawDoc is a pointer to the document class object. It is initialized by OnCreate. DrawView.h class CDrawDoc; class CDrawView: public CScrollView { pri...
Ngày tải lên: 12/08/2014, 21:20
Microsoft Visual C++ Windows Applications by Example phần 9 doc
... 9 [ 36 3 ] enum WordState {WS_EDIT, WS_MARK}; typedef CArray<Page> PageArray; class CWordDoc : public CDocument { private: DECLARE_DYNCREATE(CWordDoc) DECLARE_MESSAGE_MAP() CWordDoc(); ... m_psLastMark; Font *m_pNextFont; }; CWordDoc must have a default constructor because it will be created dynamically by the Application Framework. CWordDoc.cpp CWordDoc::CWordDoc() :m_eKeybo...
Ngày tải lên: 12/08/2014, 21:20
microsoft visual basic game programming for teens phần 1 docx
Ngày tải lên: 13/08/2014, 22:21
microsoft visual basic game programming for teens phần 3 ppsx
... Direct3D object Set d3d = dx.Direct3DCreate() If d3d Is Nothing Then MsgBox “Error initializing Direct3D!” Shutdown End If ‘tell D3D to use the current color depth d3d.GetAdapterDisplayMode D3DADAPTER_DEFAULT, ... device Dim d3dpp As D3DPRESENT_PARAMETERS d3dpp.hDeviceWindow = hwnd d3dpp.BackBufferCount = 1 d3dpp.BackBufferWidth = lWidth d3dpp.BackBufferHeight = lHeight d3dpp.SwapEffect = D3D...
Ngày tải lên: 13/08/2014, 22:21
microsoft visual basic game programming for teens phần 4 doc
... DirectX8 Dim d3d As Direct3D8 Dim d3dx As New D3DX8 Dim dispmode As D3DDISPLAYMODE Dim d3dpp As D3DPRESENT_PARAMETERS Dim d3ddev As Direct3DDevice8 Writing the TileScroll Program 125 ‘return error by default Set ... understand, right? What happens when you are using numbers that are not evenly divisible? 10 /3 = 3. 333 333 33 This is a problem, because the remainder is not an even number...
Ngày tải lên: 13/08/2014, 22:21
microsoft visual basic game programming for teens phần 5 docx
... DirectX8 Public d3d As Direct3D8 Public d3dx As New D3DX8 Public dispmode As D3DDISPLAYMODE Public d3dpp As D3DPRESENT_PARAMETERS Public d3ddev As Direct3DDevice8 Public backbuffer As Direct3DSurface8 The ... Direct3DTexture8 object to you. Public Function LoadTexture( _ ByRef dev As Direct3DDevice8, _ ByVal filename As String) _ As Direct3DTexture8 On Local Error GoTo error1 Dim d3dx As New...
Ngày tải lên: 13/08/2014, 22:21