mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
more backward compatibility for GeomVertexWriter
This commit is contained in:
parent
5dae464394
commit
0090ebc465
@ -795,6 +795,20 @@ set_data2i(int a, int b) {
|
||||
set_data2i(LVecBase2i(a, b));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::set_data2i
|
||||
// Access: Published
|
||||
// Description: Sets the write row to a particular 2-component
|
||||
// value, and advances the write row.
|
||||
//
|
||||
// It is an error for the write row to advance past
|
||||
// the end of data.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GeomVertexWriter::
|
||||
set_data2i(const int data[2]) {
|
||||
set_data2i(LVecBase2i(data[0], data[1]));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::set_data2i
|
||||
// Access: Published
|
||||
@ -824,6 +838,20 @@ set_data3i(int a, int b, int c) {
|
||||
set_data3i(LVecBase3i(a, b, c));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::set_data3i
|
||||
// Access: Published
|
||||
// Description: Sets the write row to a particular 3-component
|
||||
// value, and advances the write row.
|
||||
//
|
||||
// It is an error for the write row to advance past
|
||||
// the end of data.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GeomVertexWriter::
|
||||
set_data3i(const int data[3]) {
|
||||
set_data3i(LVecBase3i(data[0], data[1], data[2]));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::set_data3i
|
||||
// Access: Published
|
||||
@ -853,6 +881,20 @@ set_data4i(int a, int b, int c, int d) {
|
||||
set_data4i(LVecBase4i(a, b, c, d));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::set_data4i
|
||||
// Access: Published
|
||||
// Description: Sets the write row to a particular 4-component
|
||||
// value, and advances the write row.
|
||||
//
|
||||
// It is an error for the write row to advance past
|
||||
// the end of data.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GeomVertexWriter::
|
||||
set_data4i(const int data[4]) {
|
||||
set_data4i(LVecBase4i(data[0], data[1], data[2], data[3]));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeomVertexWriter::set_data4i
|
||||
// Access: Published
|
||||
|
@ -142,10 +142,13 @@ PUBLISHED:
|
||||
|
||||
INLINE void set_data1i(int data);
|
||||
INLINE void set_data2i(int a, int b);
|
||||
INLINE void set_data2i(const int data[2]);
|
||||
INLINE void set_data2i(const LVecBase2i &data);
|
||||
INLINE void set_data3i(int a, int b, int c);
|
||||
INLINE void set_data3i(const int data[3]);
|
||||
INLINE void set_data3i(const LVecBase3i &data);
|
||||
INLINE void set_data4i(int a, int b, int c, int d);
|
||||
INLINE void set_data4i(const int data[4]);
|
||||
INLINE void set_data4i(const LVecBase4i &data);
|
||||
|
||||
INLINE void add_data1f(float data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user