mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 11:19:19 +02:00
reformat: parameters can be made pointer to const
This commit is contained in:
@@ -514,7 +514,7 @@ auto python_taskqueue::fetch_renderer(std::string const Renderer) -> PyObject *
|
||||
return renderer;
|
||||
}
|
||||
|
||||
void python_taskqueue::run(GLFWwindow *Context, rendertask_sequence &Tasks, uploadtask_sequence &Upload_Tasks, threading::condition_variable &Condition, std::atomic<bool> &Exit)
|
||||
void python_taskqueue::run(GLFWwindow *Context, rendertask_sequence &Tasks, uploadtask_sequence &Upload_Tasks, threading::condition_variable &Condition, const std::atomic<bool> &Exit)
|
||||
{
|
||||
|
||||
if (Context)
|
||||
|
||||
@@ -132,7 +132,7 @@ class python_taskqueue
|
||||
using uploadtask_sequence = threading::lockable<std::deque<std::shared_ptr<render_task>>>;
|
||||
// methods
|
||||
auto fetch_renderer(std::string Renderer) -> PyObject *;
|
||||
void run(GLFWwindow *Context, rendertask_sequence &Tasks, uploadtask_sequence &Upload_Tasks, threading::condition_variable &Condition, std::atomic<bool> &Exit);
|
||||
void run(GLFWwindow *Context, rendertask_sequence &Tasks, uploadtask_sequence &Upload_Tasks, threading::condition_variable &Condition, const std::atomic<bool> &Exit);
|
||||
void error();
|
||||
|
||||
// members
|
||||
|
||||
@@ -185,7 +185,7 @@ void python_screen_viewer::threadfunc()
|
||||
}
|
||||
}
|
||||
|
||||
void python_screen_viewer::notify_window_fb_size(GLFWwindow *window, const int w, const int h)
|
||||
void python_screen_viewer::notify_window_fb_size(const GLFWwindow *window, const int w, const int h)
|
||||
{
|
||||
for (const auto &conf : m_windows) {
|
||||
if (conf->window == window) {
|
||||
@@ -196,7 +196,7 @@ void python_screen_viewer::notify_window_fb_size(GLFWwindow *window, const int w
|
||||
}
|
||||
}
|
||||
|
||||
void python_screen_viewer::notify_window_size(GLFWwindow *window, const int w, const int h)
|
||||
void python_screen_viewer::notify_window_size(const GLFWwindow *window, const int w, const int h)
|
||||
{
|
||||
for (const auto &conf : m_windows) {
|
||||
if (conf->window == window) {
|
||||
@@ -207,7 +207,7 @@ void python_screen_viewer::notify_window_size(GLFWwindow *window, const int w, c
|
||||
}
|
||||
}
|
||||
|
||||
void python_screen_viewer::notify_cursor_pos(GLFWwindow *window, const double x, const double y)
|
||||
void python_screen_viewer::notify_cursor_pos(const GLFWwindow *window, const double x, const double y)
|
||||
{
|
||||
for (const auto &conf : m_windows) {
|
||||
if (conf->window == window) {
|
||||
|
||||
@@ -38,8 +38,8 @@ public:
|
||||
python_screen_viewer(std::shared_ptr<python_rt> rt, std::shared_ptr<std::vector<glm::vec2>> touchlist, std::string name);
|
||||
~python_screen_viewer();
|
||||
|
||||
void notify_window_size(GLFWwindow *window, int w, int h);
|
||||
void notify_window_fb_size(GLFWwindow *window, int w, int h);
|
||||
void notify_cursor_pos(GLFWwindow *window, double x, double y);
|
||||
void notify_window_size(const GLFWwindow *window, int w, int h);
|
||||
void notify_window_fb_size(const GLFWwindow *window, int w, int h);
|
||||
void notify_cursor_pos(const GLFWwindow *window, double x, double y);
|
||||
void notify_click(GLFWwindow *window, int button, int action);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user