Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
kzc_shuffle.h File Reference

Generic shiffle functions. More...

Macros

#define kzcShuffleArray(buffer_param, length_param)
 Shuffles the given buffer of elementCount elements. More...
 
#define kzcShuffleArrayWithRandom(random_param, buffer_param, length_param)
 Shuffles the given buffer of elementCount elements with given random number generator. More...
 

Functions

void kzcShuffle (void *buffer, kzUint elementCount, kzUint elementSize)
 Shuffles the given buffer of elementCount elements, each of size elementSize. More...
 
void kzcShuffleWithRandom (struct KzcRandom *random, void *buffer, kzUint elementCount, kzUint elementSize)
 Shuffles the given buffer of elementCount elements, each of size elementSize. More...
 

Detailed Description

Generic shiffle functions.

Copyright 2008-2019 by Rightware. All rights reserved.

Macro Definition Documentation

#define kzcShuffleArray (   buffer_param,
  length_param 
)

Shuffles the given buffer of elementCount elements.

Size of the elements is determined automatically.

#define kzcShuffleArrayWithRandom (   random_param,
  buffer_param,
  length_param 
)

Shuffles the given buffer of elementCount elements with given random number generator.

Size of the elements is determined automatically.

Function Documentation

void kzcShuffle ( void buffer,
kzUint  elementCount,
kzUint  elementSize 
)

Shuffles the given buffer of elementCount elements, each of size elementSize.

void kzcShuffleWithRandom ( struct KzcRandom random,
void buffer,
kzUint  elementCount,
kzUint  elementSize 
)

Shuffles the given buffer of elementCount elements, each of size elementSize.

Uses the given random number generator.