git.s-ol.nu ~forks/DiligentTools / d3e988f
Fixed clang/gcc build error assiduous 10 months ago
1 changed file(s) with 16 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
227227
228228 std::string Name;
229229
230 struct PerspectiveAttribs
231 {
232 float AspectRatio;
233 float YFov;
234 float ZNear;
235 float ZFar;
236 };
237 struct OrthographicAttribs
238 {
239 float XMag;
240 float YMag;
241 float ZNear;
242 float ZFar;
243 };
230244 union
231245 {
232 struct PerspectiveCamera
233 {
234 float AspectRatio = 0;
235 float YFov = 0;
236 float ZFar = 0;
237 float ZNear = 0;
238 } Perspective;
239 struct OrthographicCamera
240 {
241 float XMag;
242 float YMag;
243 float ZFar;
244 float ZNear;
245 } Orthographic;
246 PerspectiveAttribs Perspective = {};
247 OrthographicAttribs Orthographic;
246248 };
247249
248250 float4x4 matrix;