summaryrefslogtreecommitdiff
path: root/tools/render-test/surface.cpp
AgeCommit message (Collapse)Author
2018-06-22Expose macros/functionality for defining interfaces (#604)jsmall-nvidia
* Added Result definitions to the slang.h * Removed slang-result.h and added slang-com-helper.h * Move slang-com-ptr.h to be publically available. * Add SLANG_IUNKNOWN macros to simplify implementing interfaces. Use the SLANG_IUNKNOWN macros to in slang.c * Removed slang-defines.h added outstanding defines to slang.h
2018-05-04Use Surface for screen capture in Renderer interface (#551)jsmall-nvidia
* Remove serialization of screen captures from a renderer implementation, capture now writes to a Surface. Then client code can decide to serialize (or use as needed). * Improved comment for captureScreenSurface.
2018-05-03Added Surface type - as a simple value type to hold a 2d collection of ↵jsmall-nvidia
pixels. (#548) Added PngSerializeUtil allows currently for just writing Surface of RGBA format. Removes dependency on stbi_image except for in PngSerializeUtil. Removed use of gWindowWidth/Height globals - pass the height into initialize or Renderer.