29 #ifndef PARALLAX_BACKGROUND_H 30 #define PARALLAX_BACKGROUND_H 32 #include "scene/main/canvas_layer.h" 33 #include "scene/2d/node_2d.h" 34 #include "scene/2d/camera_2d.h" 47 bool ignore_camera_zoom;
49 void _update_scroll();
52 void _camera_moved(
const Matrix32& p_transform);
54 void _notification(
int p_what);
55 static void _bind_methods();
58 void set_scroll_offset(
const Point2& p_ofs);
59 Point2 get_scroll_offset()
const;
61 void set_scroll_scale(
float p_ofs);
62 float get_scroll_scale()
const;
64 void set_scroll_base_offset(
const Point2& p_ofs);
65 Point2 get_scroll_base_offset()
const;
67 void set_scroll_base_scale(
const Point2& p_ofs);
68 Point2 get_scroll_base_scale()
const;
70 void set_limit_begin(
const Point2& p_ofs);
71 Point2 get_limit_begin()
const;
73 void set_limit_end(
const Point2& p_ofs);
74 Point2 get_limit_end()
const;
76 void set_ignore_camera_zoom(
bool ignore);
77 bool is_ignore_camera_zoom();
82 #endif // PARALLAX_BACKGROUND_H Definition: canvas_layer.h:37
Definition: math_2d.h:554
Definition: parallax_background.h:36