RetroArch
Macros | Variables
vector_4.h File Reference
#include <stdint.h>
#include <math.h>
#include <retro_common_api.h>
Include dependency graph for vector_4.h:

Go to the source code of this file.

Macros

#define vec4_add(dst, src)
 
#define vec4_subtract(dst, src)
 
#define vec4_scale(dst, scale)
 
#define vec4_copy(dst, src)
 

Variables

RETRO_BEGIN_DECLS typedef float vec4_t [4]
 

Macro Definition Documentation

◆ vec4_add

#define vec4_add (   dst,
  src 
)
Value:
dst[0] += src[0]; \
dst[1] += src[1]; \
dst[2] += src[2]; \
dst[3] += src[3]
GLenum src
Definition: glext.h:6980
GLenum GLenum dst
Definition: glext.h:6980

◆ vec4_copy

#define vec4_copy (   dst,
  src 
)
Value:
dst[0] = src[0]; \
dst[1] = src[1]; \
dst[2] = src[2]; \
dst[3] = src[3]
GLenum src
Definition: glext.h:6980
GLenum GLenum dst
Definition: glext.h:6980

◆ vec4_scale

#define vec4_scale (   dst,
  scale 
)
Value:
dst[0] *= scale; \
dst[1] *= scale; \
dst[2] *= scale; \
dst[3] *= scale
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9939
GLenum GLenum dst
Definition: glext.h:6980

◆ vec4_subtract

#define vec4_subtract (   dst,
  src 
)
Value:
dst[0] -= src[0]; \
dst[1] -= src[1]; \
dst[2] -= src[2]; \
dst[3] -= src[3]
GLenum src
Definition: glext.h:6980
GLenum GLenum dst
Definition: glext.h:6980

Variable Documentation

◆ vec4_t

RETRO_BEGIN_DECLS typedef float vec4_t[4]