Changeset 1401
- Timestamp:
- May 19, 2012, 2:42:33 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/vertexbuffer.cpp
r1337 r1401 47 47 #elif defined _XBOX 48 48 D3DVertexBuffer *m_vbo; 49 #el if !defined __ANDROID__49 #else 50 50 GLuint m_vbo; 51 51 uint8_t *m_memory; … … 474 474 D3DPOOL_MANAGED, &m_data->m_vbo, NULL))) 475 475 Abort(); 476 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__476 #elif !defined __CELLOS_LV2__ 477 477 glGenBuffers(1, &m_data->m_vbo); 478 478 m_data->m_memory = new uint8_t[size]; … … 486 486 if (FAILED(m_data->m_vbo->Release())) 487 487 Abort(); 488 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__488 #elif !defined __CELLOS_LV2__ 489 489 glDeleteBuffers(1, &m_data->m_vbo); 490 490 delete[] m_data->m_memory; … … 500 500 Abort(); 501 501 return ret; 502 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__502 #elif !defined __CELLOS_LV2__ 503 503 return m_data->m_memory + offset; 504 504 #endif … … 510 510 if (FAILED(m_data->m_vbo->Unlock())) 511 511 Abort(); 512 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__512 #elif !defined __CELLOS_LV2__ 513 513 glBindBuffer(GL_ARRAY_BUFFER, m_data->m_vbo); 514 514 glBufferData(GL_ARRAY_BUFFER, m_data->m_size, m_data->m_memory, -
trunk/src/lol/math/vector.h
r1381 r1401 19 19 #include <stdint.h> 20 20 #include <cmath> 21 #if !defined __ANDROID__ 22 # include <iostream> 23 #endif 21 #include <ostream> 22 #include <algorithm> 24 23 25 24 #include "lol/math/half.h" … … 236 235 DECLARE_MEMBER_OPS(Vec2, x) 237 236 238 #if !defined __ANDROID__239 237 template<typename U> 240 238 friend std::ostream &operator<<(std::ostream &stream, Vec2<U> const &v); 241 #endif242 239 }; 243 240 … … 270 267 271 268 inline T norm() const { return length(*this); } 272 #if !defined __ANDROID__273 269 template<typename U> 274 270 friend std::ostream &operator<<(std::ostream &stream, Cmplx<U> const &v); 275 #endif276 271 277 272 T x, y; … … 494 489 DECLARE_MEMBER_OPS(Vec3, x) 495 490 496 #if !defined __ANDROID__497 491 template<typename U> 498 492 friend std::ostream &operator<<(std::ostream &stream, Vec3<U> const &v); 499 #endif500 493 }; 501 494 … … 903 896 DECLARE_MEMBER_OPS(Vec4, x) 904 897 905 #if !defined __ANDROID__906 898 template<typename U> 907 899 friend std::ostream &operator<<(std::ostream &stream, Vec4<U> const &v); 908 #endif909 900 }; 910 901 … … 984 975 } 985 976 986 #if !defined __ANDROID__987 977 template<typename U> 988 978 friend std::ostream &operator<<(std::ostream &stream, Quat<U> const &v); 989 #endif990 979 991 980 /* XXX: storage order is wxyz, unlike vectors! */ … … 1593 1582 void printf() const; 1594 1583 1595 #if !defined __ANDROID__1596 1584 template<class U> 1597 1585 friend std::ostream &operator<<(std::ostream &stream, Mat2<U> const &m); 1598 #endif1599 1586 1600 1587 inline Mat2<T> operator +(Mat2<T> const m) const … … 1718 1705 void printf() const; 1719 1706 1720 #if !defined __ANDROID__1721 1707 template<class U> 1722 1708 friend std::ostream &operator<<(std::ostream &stream, Mat3<U> const &m); 1723 #endif1724 1709 1725 1710 inline Mat3<T> operator +(Mat3<T> const m) const … … 1885 1870 void printf() const; 1886 1871 1887 #if !defined __ANDROID__1888 1872 template<class U> 1889 1873 friend std::ostream &operator<<(std::ostream &stream, Mat4<U> const &m); 1890 #endif1891 1874 1892 1875 inline Mat4<T> operator +(Mat4<T> const &m) const -
trunk/src/math/vector.cpp
r1352 r1401 30 30 #include <cstring> /* strdup() */ 31 31 32 #include <ostream> /* std::ostream */ 33 32 34 #include "core.h" 33 35 … … 238 240 } 239 241 240 #if !defined __ANDROID__241 242 template<> std::ostream &operator<<(std::ostream &stream, ivec2 const &v) 242 243 { … … 305 306 return stream; 306 307 } 307 #endif308 308 309 309 template<> mat3 mat3::scale(float x, float y, float z)
Note: See TracChangeset
for help on using the changeset viewer.