SpeedTree
    Show / Hide Table of Contents

    Data types

    The basic data types used by the SpeedTree Runtime SDK are defined in Core/Types.h.

    ///////////////////////////////////////////////////////////////////////  
    //  Setup types based on platform, but nothing too complex
    
    typedef bool           st_bool;
    typedef char           st_int8;
    typedef char           st_char;
    typedef short          st_int16;
    typedef int            st_int32;
    typedef long long      st_int64;
    typedef unsigned char  st_uint8;
    typedef unsigned char  st_byte;
    typedef unsigned char  st_uchar;
    typedef unsigned short st_uint16;
    typedef unsigned int   st_uint32;
    typedef float          st_float32;
    typedef double         st_float64;
    typedef size_t         st_sizet;
    
    // st_float16, commonly known as a half float, has its own complete definition in Core/Types.h.
    

    Compile time checks are used in Core/Types.h to ensure that the types are of the expected size.

    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.