Skip to content

Commit e6b493a

Browse files
committed
Removed unused projectm_set_texture_size() API function.
1 parent 13437a5 commit e6b493a

File tree

4 files changed

+0
-44
lines changed

4 files changed

+0
-44
lines changed

src/api/include/libprojectM/parameters.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ PROJECTM_EXPORT void projectm_set_texture_search_paths(projectm_handle instance,
4545
const char** texture_search_paths,
4646
size_t count);
4747

48-
/**
49-
* @brief Changes the size of the internal render texture.
50-
* @note This will recreate the internal renderer.
51-
* @param instance The projectM instance handle.
52-
* @param size The new size of the render texture. Must be a power of 2.
53-
*/
54-
PROJECTM_EXPORT void projectm_set_texture_size(projectm_handle instance, size_t size);
55-
56-
/**
57-
* @brief Returns the size of the internal render texture.
58-
* @param instance The projectM instance handle.
59-
* @return The size of the internal rendering texture.
60-
*/
61-
PROJECTM_EXPORT size_t projectm_get_texture_size(projectm_handle instance);
62-
6348
/**
6449
* @brief Sets the beat sensitivity.
6550
*

src/libprojectM/ProjectM.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -411,18 +411,6 @@ auto ProjectM::PresetLocked() const -> bool
411411
return m_presetLocked;
412412
}
413413

414-
void ProjectM::SetTextureSize(size_t size)
415-
{
416-
m_textureSize = size;
417-
418-
RecreateRenderer();
419-
}
420-
421-
auto ProjectM::TextureSize() const -> size_t
422-
{
423-
return m_textureSize;
424-
}
425-
426414
void ProjectM::SetBeatSensitivity(float sensitivity)
427415
{
428416
m_beatDetect->beatSensitivity = std::min(std::max(0.0f, sensitivity), 2.0f);

src/libprojectM/ProjectM.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,6 @@ PROJECTM_EXPORT class ProjectM
127127

128128
auto InitRenderToTexture() -> unsigned;
129129

130-
void SetTextureSize(size_t size);
131-
132-
auto TextureSize() const -> size_t;
133-
134130
void SetBeatSensitivity(float sensitivity);
135131

136132
auto GetBeatSensitivity() const -> float;
@@ -251,7 +247,6 @@ PROJECTM_EXPORT class ProjectM
251247
size_t m_meshX{32}; //!< Per-point mesh horizontal resolution.
252248
size_t m_meshY{24}; //!< Per-point mesh vertical resolution.
253249
size_t m_targetFps{35}; //!< Target frames per second.
254-
size_t m_textureSize{512}; //!< Render texture size.
255250
size_t m_windowWidth{0}; //!< Render window width. If 0, nothing is rendered.
256251
size_t m_windowHeight{0}; //!< Render window height. If 0, nothing is rendered.
257252
double m_presetDuration{30.0}; //!< Preset duration in seconds.

src/libprojectM/ProjectMCWrapper.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,6 @@ unsigned int projectm_opengl_init_render_to_texture(projectm_handle instance)
172172
return projectMInstance->InitRenderToTexture();
173173
}
174174

175-
size_t projectm_get_texture_size(projectm_handle instance)
176-
{
177-
auto projectMInstance = handle_to_instance(instance);
178-
return projectMInstance->TextureSize();
179-
}
180-
181-
void projectm_set_texture_size(projectm_handle instance, size_t size)
182-
{
183-
auto projectMInstance = handle_to_instance(instance);
184-
projectMInstance->SetTextureSize(size);
185-
}
186-
187175
void projectm_set_beat_sensitivity(projectm_handle instance, float sensitivity)
188176
{
189177
auto projectMInstance = handle_to_instance(instance);

0 commit comments

Comments
 (0)