srp
software rendering pipeline
Loading...
Searching...
No Matches
voidptr.h
Go to the documentation of this file.
1// Software Rendering Pipeline (SRP) library
2// Licensed under GNU GPLv3
3
8#pragma once
9
10#include <stdint.h>
11
16#define INDEX_VOID_PTR(ptr, idx, nBytesPerElement) \
17 ( ( (uint8_t*) (ptr) ) + (idx) * (nBytesPerElement) )
18
20#define ADD_VOID_PTR(ptr, nBytes) \
21 ( ( (uint8_t*) (ptr) ) + (nBytes) )
22
// ingroup Various_internal