mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-20 11:54:07 +03:00
Graphic3d_TypeOfData - added Graphic3d_TOD_FLOAT for passing single-float vertex attributes. Graphic3d_TOA_CUSTOM - changed value to increase the range for custom vertex attributes locations (to fit into hardware limits). Graphic3d_ShaderProgram::SetVertexAttributes() - introduced API for defining custom vertex attributes. For compatibility with automated wrappers: - Graphic3d_Buffer::Init() - added prototype taking NCollection_Array1<Graphic3d_Attribute> instead of C array - Graphic3d_IndexBuffer::InitInt32() - added typed initialization method. - Graphic3d_ShaderProgram::PushVariableVec3() and others - added typed methods to push uniform varibales.
40 lines
1.5 KiB
C++
40 lines
1.5 KiB
C++
// Created on: 2016-02-19
|
|
// Created by: Kirill Gavrilov
|
|
// Copyright (c) 2016 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#include <Graphic3d_ShaderAttribute.hxx>
|
|
|
|
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_ShaderAttribute,Standard_Transient)
|
|
|
|
// =======================================================================
|
|
// function : Graphic3d_ShaderAttribute
|
|
// purpose :
|
|
// =======================================================================
|
|
Graphic3d_ShaderAttribute::Graphic3d_ShaderAttribute (const TCollection_AsciiString& theName,
|
|
const int theLocation)
|
|
: myName (theName),
|
|
myLocation (theLocation)
|
|
{
|
|
//
|
|
}
|
|
|
|
// =======================================================================
|
|
// function : ~Graphic3d_ShaderAttribute
|
|
// purpose :
|
|
// =======================================================================
|
|
Graphic3d_ShaderAttribute::~Graphic3d_ShaderAttribute()
|
|
{
|
|
//
|
|
}
|