unpack_shaders.c revision df504dfa2b5b186f4cac7f7859eabd09b30eebf0
/* $Id$ */
/** @file
* VBox OpenGL DRI driver functions
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#include "unpacker.h"
#include "cr_error.h"
#include "cr_protocol.h"
#include "cr_mem.h"
#include "cr_string.h"
#include "cr_version.h"
void crUnpackExtendBindAttribLocation(void)
{
}
void crUnpackExtendShaderSource(void)
{
GLsizei i;
if (hasNonLocalLen>0)
{
}
if (!ppStrings) return;
for (i=0; i<count; ++i)
{
pos += pLocalLength[i];
if (!length)
{
pLocalLength[i] -= 1;
}
}
}
void crUnpackExtendUniform1fv(void)
{
}
void crUnpackExtendUniform1iv(void)
{
}
void crUnpackExtendUniform2fv(void)
{
}
void crUnpackExtendUniform2iv(void)
{
}
void crUnpackExtendUniform3fv(void)
{
}
void crUnpackExtendUniform3iv(void)
{
}
void crUnpackExtendUniform4fv(void)
{
}
void crUnpackExtendUniform4iv(void)
{
}
void crUnpackExtendUniformMatrix2fv(void)
{
}
void crUnpackExtendUniformMatrix3fv(void)
{
}
void crUnpackExtendUniformMatrix4fv(void)
{
}
void crUnpackExtendDrawBuffers(void)
{
}
void crUnpackExtendGetActiveAttrib(void)
{
SET_RETURN_PTR(20);
SET_WRITEBACK_PTR(28);
}
void crUnpackExtendGetActiveUniform(void)
{
SET_RETURN_PTR(20);
SET_WRITEBACK_PTR(28);
}
void crUnpackExtendGetAttachedShaders(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}
void crUnpackExtendGetAttachedObjectsARB(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}
void crUnpackExtendGetInfoLogARB(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}
void crUnpackExtendGetProgramInfoLog(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}
void crUnpackExtendGetShaderInfoLog(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}
void crUnpackExtendGetShaderSource(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}
void crUnpackExtendGetAttribLocation(void)
{
int packet_length = READ_DATA(0, int);
}
void crUnpackExtendGetUniformLocation(void)
{
int packet_length = READ_DATA(0, int);
}