SlideServe
Menu
Préférences
© SlideServe · v2026

Chapter 4: Working with Graphics APIs

elma avatar
17 diapositives · 437 Views · Oct 12, 2014

Chapter 4: Working with Graphics APIs. We will …. Learn relationships between Graphics and GUI API Understand a Graphics API programming framework Use the framework and apply to Tutorial 3.1. Our Source Code. Graphics API. GUI API. Operating System. The APIs of Tutorial 3.1:.

Chapter 4: Working with Graphics APIs - slide 1
01 / 17Chapter 4: Working with Graphics APIs
1 / 17

Télécharger la présentation

Chapter 4: Working with Graphics APIs
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Chapter 4: Working with Graphics APIs Chapter 4

  2. We will … • Learn relationships between Graphics and GUI API • Understand a Graphics API programming framework • Use the framework and apply to Tutorial 3.1 Chapter 4

  3. Our Source Code Graphics API GUI API Operating System The APIs of Tutorial 3.1: • Graphics API: • Needs GUI for window to draw in • GUI API: • Needs Operating system for events Chapter 4

  4. Supports from the APIs • Graphics API • Initialize drawing hardware • GUI API • Create Window + GUI elements (Button) • Create drawing area in Window • Graphics API draws to the drawing area created by GUI API Chapter 4

  5. Graphics API: Programming model Chapter 4

  6. Graphics API framework • Graphics Hardware Context (GHC) • Hardware buffers (e.g., pixel frame buffer) • Can be multiple buffers of different types (e.g., pixel, z, stencil, etc.) • Rendering Context (RC) • Attributes of how to turn geometry into pixels • e.g., transformation, color, lighting shading • Can have multiple RC connecting to GHC Chapter 4

  7. Programming with Graphics API Chapter 4

  8. Programming with Graphics API • A: Initialize Hardware (GHC) • B: Create RC • C: Drawing • C1: Preparations: set Rendering state: transforms, colors, etc. • C2: Send drawing command • GHC buffers are shown through GUI drawing areas Chapter 4

  9. Tutorial 3.1: OnPaint with D3D Chapter 4

  10. Tutorial 3.2: OnPaint with OGL Chapter 4

  11. Tutorial 3.1: OnCreate D3D Init Chapter 4

  12. Tutorial 3.2: OnCreate OGL Init Chapter 4

  13. GraphicsSystem abstraction … Chapter 4

  14. Using GraphicsSystem abstraction Chapter 4

  15. Tutorial 4.1: GraphicsSystem class Chapter 4

  16. Tutorial 4.1: using GraphicsSystem Chapter 4

  17. Tutorial 4.1: RectangleClass Chapter 4