]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/frameformat.cpp
Use standard fixed-size integer types
[libs/gl.git] / source / core / frameformat.cpp
index f023aba799a59d19cde92ae5e09f7f4fdb9f603d..3a415766696cdf065cbe4670682a32a47f76bd85 100644 (file)
@@ -36,7 +36,7 @@ FrameFormat FrameFormat::operator,(PixelFormat pf) const
                throw invalid_operation("FrameFormat::operator,");
 
        FrameFormat r = *this;
-       UInt16 &fa = r.attachments[r.count-1];
+       uint16_t &fa = r.attachments[r.count-1];
        fa = make_typed_attachment(static_cast<FrameAttachment>(fa), pf);
 
        return r;
@@ -48,7 +48,7 @@ FrameFormat FrameFormat::operator,(unsigned index) const
                throw invalid_operation("FrameFormat::operator,");
 
        FrameFormat r = *this;
-       UInt16 &fa = r.attachments[r.count-1];
+       uint16_t &fa = r.attachments[r.count-1];
        fa = make_indexed_attachment(static_cast<FrameAttachment>(fa), index);
 
        return r;
@@ -104,7 +104,7 @@ FrameAttachment make_indexed_attachment(FrameAttachment fa, unsigned i)
                throw invalid_argument("make_indexed_attachment");
 }
 
-PixelFormat get_attachment_pixelformat(UInt16 fa)
+PixelFormat get_attachment_pixelformat(uint16_t fa)
 {
        PixelComponents comp;
        if(get_attach_point(fa)==get_attach_point(DEPTH_ATTACHMENT))