131 operator void*()
const {
return m_ptr; }
147 char* p = (
char*)m_ptr;
159 char* p = (
char*)m_ptr;
172 T&
operator[](
int i)
const {
return *(
T*)((
char*)m_ptr + i * m_step); }
176 T*
ptr()
const {
return m_ptr; }
180 int step()
const {
return m_step; }
VaryingRef< T > Uniform(T *x)
VaryingRef< T > Varying(T *x)
VaryingRef(void *ptr_, int step_=0)
VaryingRef & operator++()
T & operator[](int i) const
void init(T *ptr_, int step_=0)
#define OIIO_NAMESPACE_END
const VaryingRef & operator=(T &ptr_)
#define OIIO_NAMESPACE_BEGIN