simage  1.8.3
Coin3D texture image library
Loading...
Searching...
No Matches
params.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <config.h>
#include <simage.h>
#include <string.h>
#include <stdarg.h>

Data Structures

struct  simage_param_data
 
struct  simage_parameters_s
 

Typedefs

typedef void s_generic_func()
 

Functions

static void add_double_param (s_params *params, const char *name, double val)
 
static void add_float_param (s_params *params, const char *name, float val)
 
static void add_function_param (s_params *params, const char *name, void(*val)())
 
static void add_integer_param (s_params *params, const char *name, int val)
 
static void add_pointer_param (s_params *params, const char *name, void *val)
 
static void add_string_param (s_params *params, const char *name, const char *val)
 
static struct simage_param_datafind_param (s_params *params, const char *name, int type, int allocnew)
 
s_paramss_params_copy (s_params *params)
 
s_paramss_params_create (void)
 
void s_params_destroy (s_params *params)
 
int s_params_get (s_params *params,...)
 
void s_params_set (s_params *params,...)
 

Typedef Documentation

◆ s_generic_func

typedef void s_generic_func()

Function Documentation

◆ add_double_param()

static void add_double_param ( s_params * params,
const char * name,
double val )
static

◆ add_float_param()

static void add_float_param ( s_params * params,
const char * name,
float val )
static

◆ add_function_param()

static void add_function_param ( s_params * params,
const char * name,
void(*)() val )
static

◆ add_integer_param()

static void add_integer_param ( s_params * params,
const char * name,
int val )
static

◆ add_pointer_param()

static void add_pointer_param ( s_params * params,
const char * name,
void * val )
static

◆ add_string_param()

static void add_string_param ( s_params * params,
const char * name,
const char * val )
static

◆ find_param()

static struct simage_param_data * find_param ( s_params * params,
const char * name,
int type,
int allocnew )
static

◆ s_params_copy()

s_params * s_params_copy ( s_params * params)

◆ s_params_create()

s_params * s_params_create ( void )

◆ s_params_destroy()

void s_params_destroy ( s_params * params)

◆ s_params_get()

int s_params_get ( s_params * params,
... )

◆ s_params_set()

void s_params_set ( s_params * params,
... )