.doc/ext/rays/matrix.cpp in rays-0.2.1 vs .doc/ext/rays/matrix.cpp in rays-0.3

- old
+ new

@@ -4,11 +4,11 @@ #include <assert.h> #include "rays/ruby/point.h" #include "defs.h" -RUCY_DEFINE_VALUE_OR_ARRAY_FROM_TO(Rays::Matrix) +RUCY_DEFINE_VALUE_OR_ARRAY_FROM_TO(RAYS_EXPORT, Rays::Matrix) #define THIS to<Rays::Matrix*>(self) #define CHECK RUCY_CHECK_OBJ(Rays::Matrix, self) @@ -212,14 +212,14 @@ else return value(Rays::ortho(l, r, t, b, to<coord>(argv[4]), to<coord>(argv[5]))); } static -VALUE s_perspective(VALUE self, VALUE fov_y, VALUE aspect_ratio, VALUE near, VALUE far) +VALUE s_perspective(VALUE self, VALUE fov_y, VALUE aspect_ratio, VALUE near_, VALUE far_) { return value(Rays::perspective( - to<float>(fov_y), to<float>(aspect_ratio), to<coord>(near), to<coord>(far))); + to<float>(fov_y), to<float>(aspect_ratio), to<coord>(near_), to<coord>(far_))); } static VALUE s_look_at(VALUE self) { @@ -279,10 +279,10 @@ namespace Rucy { - template <> Rays::Matrix + template <> RAYS_EXPORT Rays::Matrix value_to<Rays::Matrix> (int argc, const Value* argv, bool convert) { if (argc == 1 && argv->is_array()) { argc = argv->size();