Exemplo n.º 1
0
void al_bufferfv( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) {

	if (NULL == alBufferfv) mogl_glunsupported("alBufferfv");
	alBufferfv((ALuint)mxGetScalar(prhs[0]),
		(ALenum)mxGetScalar(prhs[1]),
		(const ALfloat*)mxGetData(prhs[2]));

}
Exemplo n.º 2
0
value lime_al_bufferfv (value buffer, value param, value values) {

    float *data = val_array_float (values);

    if (data) {

        alBufferfv (val_int (buffer), val_int (param), data);

    }

    return alloc_null ();

}
Exemplo n.º 3
0
	void lime_al_bufferfv (int buffer, int param, value values) {
		
		if (val_is_null (values) == false) {
			
			int size = val_array_size (values);
			ALfloat *data = new ALfloat[size];
			
			for (int i = 0; i < size; ++i) {
				
				data[i] = (ALfloat)val_float( val_array_i (values, i) );
				
			}
			
			alBufferfv (buffer, param, data);
			
			delete[] data;
			
		}
		
	}
Exemplo n.º 4
0
ALvoid CDECL wine_alBufferfv(ALuint bid, ALenum param, const ALfloat* values)
{
    alBufferfv(bid, param, values);
}
Exemplo n.º 5
0
//*****************************************************************************
// alBufferfv
//*****************************************************************************
//
ALAPI ALvoid ALAPIENTRY alBufferfv(ALuint bufferName, ALenum param, const ALfloat* values)
{
    AL_VOID_FXN(alBufferfv(bufferName, param, values));
}