Class: Gosu::Image
Constant Summary
Constants included
from TexPlay
TexPlay::TEXPLAY_VERSION
TexPlay::Colors::Alpha, TexPlay::Colors::Black, TexPlay::Colors::Blue, TexPlay::Colors::Brown, TexPlay::Colors::Cyan, TexPlay::Colors::Green, TexPlay::Colors::Grey, TexPlay::Colors::Orange, TexPlay::Colors::Purple, TexPlay::Colors::Red, TexPlay::Colors::Turquoise, TexPlay::Colors::Tyrian, TexPlay::Colors::White, TexPlay::Colors::Yellow
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from TexPlay
create_blank_image, on_setup, setup
Class Method Details
.new(*args, &block) ⇒ Object
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# File 'lib/texplay.rb', line 97
def new(*args, &block)
obj = original_new(*args, &block)
if obj.width <= (TexPlay::TP_MAX_QUAD_SIZE - 2) &&
obj.height <= (TexPlay::TP_MAX_QUAD_SIZE - 2) && obj.quad_cached? then
obj.refresh_cache
end
TexPlay::setup(obj)
obj.instance_variable_set(:@__window__, args.first)
obj
end
|
.original_new ⇒ Object
95
|
# File 'lib/texplay.rb', line 95
alias_method :original_new, :new
|
Instance Method Details
#__window__ ⇒ Object
119
120
121
|
# File 'lib/texplay.rb', line 119
def __window__
@__window__
end
|