NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
Fixed Types

Contains macros and definitions for fixed-width types. More...

Classes

struct  nnl::Vec4< T >
 4D vector template with packed storage More...
struct  nnl::Vec3< T >
 3D vector template with packed storage More...
struct  nnl::Vec2< T >
 2D vector template with packed storage More...
struct  nnl::Mat4< T >
 4x4 matrix template with packed storage More...

Macros

#define NNL_PACK(...)
 A structure packing directive.

Typedefs

using nnl::u64 = std::uint64_t
 64-bit unsigned integer
using nnl::i64 = std::int64_t
 64-bit signed integer
using nnl::f32 = float
 32-bit floating point
using nnl::u32 = std::uint32_t
 32-bit unsigned integer
using nnl::i32 = std::int32_t
 32-bit signed integer
using nnl::u16 = std::uint16_t
 16-bit unsigned integer
using nnl::i16 = std::int16_t
 16-bit signed integer
using nnl::u8 = std::uint8_t
 8-bit unsigned integer
using nnl::i8 = std::int8_t
 8-bit signed integer

Detailed Description

Contains macros and definitions for fixed-width types.


Class Documentation

◆ nnl::Vec4

struct nnl::Vec4
template<typename T>
struct nnl::Vec4< T >

4D vector template with packed storage

Template Parameters
TComponent type

◆ nnl::Vec3

struct nnl::Vec3
template<typename T>
struct nnl::Vec3< T >

3D vector template with packed storage

Template Parameters
TComponent type

◆ nnl::Vec2

struct nnl::Vec2
template<typename T>
struct nnl::Vec2< T >

2D vector template with packed storage

Template Parameters
TComponent type

◆ nnl::Mat4

struct nnl::Mat4
template<typename T>
struct nnl::Mat4< T >

4x4 matrix template with packed storage

Template Parameters
TComponent type

Macro Definition Documentation

◆ NNL_PACK

#define NNL_PACK ( ...)
Value:
__VA_ARGS__ __attribute__((__packed__))

A structure packing directive.

Ensures the in-memory representation of a structure matches its raw binary format.

Typedef Documentation

◆ f32

using nnl::f32 = float

32-bit floating point

◆ i16

using nnl::i16 = std::int16_t

16-bit signed integer

◆ i32

using nnl::i32 = std::int32_t

32-bit signed integer

◆ i64

using nnl::i64 = std::int64_t

64-bit signed integer

◆ i8

using nnl::i8 = std::int8_t

8-bit signed integer

◆ u16

using nnl::u16 = std::uint16_t

16-bit unsigned integer

◆ u32

using nnl::u32 = std::uint32_t

32-bit unsigned integer

◆ u64

using nnl::u64 = std::uint64_t

64-bit unsigned integer

◆ u8

using nnl::u8 = std::uint8_t

8-bit unsigned integer