/* $Id$ */
/** @file
* VBox OpenGL DRI driver functions
*/
/*
* Copyright (C) 2009-2010 Oracle Corporation
*
* 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.
*/
#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)
{
if (hasNonLocalLen>0)
{
}
if (!ppStrings) return;
for (i=0; i<count; ++i)
{
pos += pLocalLength[i];
if (!length)
{
pLocalLength[i] -= 1;
}
Assert(pLocalLength[i] > 0);
for (j = 0; j < jUpTo; ++j)
{
if (pString[j] == '\0')
{
pString[j] = '\n';
}
}
}
// cr_unpackDispatch.ShaderSource(shader, count, ppStrings, length ? length : pLocalLength);
}
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 crUnpackExtendUniformMatrix2x3fv(void)
{
}
void crUnpackExtendUniformMatrix3x2fv(void)
{
}
void crUnpackExtendUniformMatrix2x4fv(void)
{
}
void crUnpackExtendUniformMatrix4x2fv(void)
{
}
void crUnpackExtendUniformMatrix3x4fv(void)
{
}
void crUnpackExtendUniformMatrix4x3fv(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)
{
}
void crUnpackExtendGetUniformLocation(void)
{
}
void crUnpackExtendGetUniformsLocations(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}
void crUnpackExtendGetAttribsLocations(void)
{
SET_RETURN_PTR(16);
SET_WRITEBACK_PTR(24);
}