/usr/include/aqsis/ri/rif.h is in libaqsis-dev 1.8.1-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | /* Aqsis
* Copyright (C) 1997 - 2001, Paul C. Gregory
*
* Contact: pgregory@aqsis.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/** \file
* \brief RI filters interface
*
* Define the RenderMan Interface filters API
*
* ===================================================================
* C-compatible header. C++ constructs must be preprocessor-protected.
* ===================================================================
*/
#ifndef RIF_H_INCLUDED
#define RIF_H_INCLUDED
#include <aqsis/config.h>
#include <aqsis/ri/ritypes.h>
/** \brief Primitive variable type identifiers */
typedef enum
{
k_RifFloat=0,
k_RifPoint,
k_RifColor,
k_RifInteger,
k_RifString,
k_RifVector,
k_RifNormal,
k_RifHPoint,
k_RifMatrix,
k_RifMPoint
} RifTokenType;
/** \brief Primitive variable interpolation classes */
typedef enum
{
k_RifConstant=0,
k_RifUniform,
k_RifVarying,
k_RifVertex,
k_RifFaceVarying,
k_RifFaceVertex
} RifTokenDetail;
#ifdef __cplusplus
extern "C" {
#endif
/** \brief Look up a RI token in the internal dictionary.
*
* This function looks up previously declared tokens (those which have been
* declared via RiDeclare()), and returns the type, interpolation class and
* array length. It can also parse inline declarations.
*
* \param name - name of the token, or inline declaration
*
* \param tokType - type for values associated with the token
* \param tokDetail - interpolation class
* \param arrayLen - array length; for non-array tokens 1 is returned since
* the amount of storage is the same for a non-array and for
* a length-1 array.
*
* \return 0 on success in which case tokType, tokClass and arrayLen are set to
* appropriate values. 1 is returned if the function was unable to parse the
* token or find the token name in the internal dictionary.
*/
AQSIS_RI_SHARE RtInt RifGetDeclaration(RtToken name, RifTokenType *tokType,
RifTokenDetail *tokDetail, RtInt *arrayLen);
#ifdef __cplusplus
}
#endif
#endif /* RIF_H_INCLUDED */
|