Sha256: 4e65d0d7356883376f4a774bcf1af48c3d7c2601a91c92c0ba56ffabbbd5ac26

Contents?: true

Size: 360 Bytes

Versions: 6

Compression:

Stored size: 360 Bytes

Contents

# -*- coding: utf-8 -*-


require 'rays/ext'
require 'rays/color_space'


module Rays


  class Texture

    def initialize (width, height, color_space = :RGBA, alpha_only = false)
      setup width, height, ColorSpace.get_color_space(color_space), alpha_only
    end

    def bounds ()
      Bounew.new 0, 0, width, height
    end

  end# Texture


end# Rays

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rays-0.1.12 lib/rays/texture.rb
rays-0.1.11 lib/rays/texture.rb
rays-0.1.10 lib/rays/texture.rb
rays-0.1.9 lib/rays/texture.rb
rays-0.1.8 lib/rays/texture.rb
rays-0.1.7 lib/rays/texture.rb