Lecture 19: slide

Interactive Computer Graphics: A Top-Down Approach Using OpenGL (4th Edition)

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Advanced Graphics Lab Class 19 October 25, 2007 ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Announcements ± Homework 3 is due Sunday ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 3 Scalar Invariant Raster Image Representation Through Topological Encoding Warren Hunt Graduate Researcher Advanced Graphics Lab Friday, October 25, 2007 ECE 118 at noon ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Last time ± Started talking about graphics API’s ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Today ± Graphics API’s and vertex/fragment programs ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Overview of DirectX application DirectX display hardware abstraction layer driver Windows OS
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Viewing device capabilities ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Taking a look at some code… ± Acquiring a Direct3D interface handle: IDirect3D9 *md3dObject; md3dObject = Direct3DCreate9(D3D_SDK_VERSION); ± Creating the Direct3D object: IDirect3DDevice9 *gd3dDevice = 0; md3dObject->CreateDevice( D3DADAPTER_DEFAULT, // primary adapter D3DDEVTYPE_HAL, // device type mhMainWnd, // window devBehaviorFlags, // vertex processing &md3dPP, // present params &gd3dDevice); // return created device ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Taking a look at some code… ± D3DPRESENT_PARAMETERS: typedef struct _D3DPRESENT_PARAMETERS { UINT BackBufferWidth; UINT BackBufferHeight; D3DFORMAT BackBufferFormat; UINT BackBufferCount; D3DMULTISAMPLE_TYPE MultiSampleType; DWORD MultiSampleQuality; D3DSWAPEFFECT SwapEffect; HWND hDeviceWindow; BOOL Windowed; BOOL EnableAutoDepthStencil; D3DFORMAT AutoDepthStencilFormat; DWORD Flags; UINT FullScreen_RefreshRateInHz; UINT PresentationInterval; } D3DPRESENT_PARAMETERS; ECE/CS 433 Introduction to Computer Graphics Pradeep Sen Class 19 – October 25, 2007 Taking a look at some code… ± Sample settings D3DPRESENT_PARAMETERS d3dpp; d3dpp.BackBufferWidth = 800; d3dpp.BackBufferHeight = 600; d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8; d3dpp.BackBufferCount = 1; d3dpp.MultiSampleType = D3DMULTISAMPLE_NONE; d3dpp.MultiSampleQuality = 0; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; d3dpp.hDeviceWindow = hwnd; d3dpp.Windowed = true; d3dpp.EnableAutoDepthStencil = true; d3dpp.AutoDepthStencilFormat
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

Lecture 19: slide - Announcements ECE/CS 433 Introduction...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online