Sha256: 6898f1acc093fccd25b2358e73432f2e6cba90e14971ec8583c8838ff6559b62

Contents?: true

Size: 855 Bytes

Versions: 4

Compression:

Stored size: 855 Bytes

Contents

#include "spyglass.h"

static VALUE SpyglassModule;

namespace Spyglass {

  VALUE get_ruby_module() {
    return SpyglassModule;
  }

  void define_ruby_module() {
    SpyglassModule = rb_define_module("Spyglass");
  }

}

extern "C" {
  void Init_spyglass() {
    Spyglass::define_ruby_module();
    Spyglass::ColorSpace::define_ruby_module();

    Spyglass::BackgroundSubtractor::define_ruby_types();
    Spyglass::CascadeClassifier::define_ruby_class();
    Spyglass::Color::define_ruby_class();
    Spyglass::Contour::define_ruby_class();
    Spyglass::Image::define_ruby_class();
    Spyglass::Point::define_ruby_class();
    Spyglass::Rect::define_ruby_class();
    Spyglass::Size::define_ruby_class();
    Spyglass::VideoCapture::define_ruby_class();

    Spyglass::GUI::define_ruby_module();
    Spyglass::GUI::Window::define_ruby_class();
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spyglass-0.0.5.1 ext/spyglass/spyglass.cc
spyglass-0.0.5 ext/spyglass/spyglass.cc
spyglass-0.0.4.1 ext/spyglass/spyglass.cc
spyglass-0.0.4 ext/spyglass/spyglass.cc