Difference between revisions of "Hardware 3D (C++ DirectX Graphics) Tutorial 22"

From Chilipedia
Jump to: navigation, search
(Resources)
Line 17: Line 17:
 
* More <code>Drawable</code> types
 
* More <code>Drawable</code> types
 
* <code>Factory</code> for drawables with <code>std::generate_n</code>
 
* <code>Factory</code> for drawables with <code>std::generate_n</code>
 
== Resources ==
 
* [https://www.youtube.com/watch?v=X9nLrjUQVQw Project TWIN video on GDI+ image loading for Surface]
 
  
 
== Video Timestamp Index ==
 
== Video Timestamp Index ==
Line 25: Line 22:
 
* [https://youtu.be/ZoNCFe9FgG8 Tutorial 21.2]
 
* [https://youtu.be/ZoNCFe9FgG8 Tutorial 21.2]
 
* [https://youtu.be/rNb6UTCg2Zg Tutorial 21.3]
 
* [https://youtu.be/rNb6UTCg2Zg Tutorial 21.3]
 +
 +
== Resources ==
 +
* [https://www.youtube.com/watch?v=X9nLrjUQVQw Project TWIN video on GDI+ image loading for Surface]
  
 
== Source Code ==
 
== Source Code ==

Revision as of 14:03, 4 May 2019

In this three-part tutorial, we take a break from Direct3D api stuff to set up a better system for organizing Drawables and Bindables. Low coupling, high cohesion, and dynamic bullshits for the win.

Topics Covered

Part 1

  • Bindable system (things like shaders, vertex buffers, etc.)
  • Drawable system (things like the game entities that are drawn; they contain a collection of Bindables)
  • Partial protected access inheritance pattern
  • Weird quirk of C++ relating to visibility of protected members in the case of inheritance from a templated class
  • How to update constant buffers using Map / Unmap

Part 2

  • Static collection of per-class Bindable
  • SetIndexFromStatic
  • Sharing cbuffer between instances of TransformCbuf

Part 3

  • Geometric primitives (cone, sphere, prism)
  • Geometry-distorting transforms
  • More Drawable types
  • Factory for drawables with std::generate_n

Video Timestamp Index

Resources

Source Code

See also