Rename PixelRenderer to PixmapRenderer

This commit is contained in:
Elias Batek 2023-12-27 17:04:32 +01:00
parent e18fb69779
commit c9b6c20220
1 changed files with 5 additions and 5 deletions

View File

@ -441,7 +441,7 @@ struct WantsOpenGl {
}
///
interface PixelRenderer {
interface PixmapRenderer {
/++
Does this renderer use OpenGL?
@ -487,7 +487,7 @@ interface PixelRenderer {
}
///
final class OpenGL3PixelRenderer : PixelRenderer {
final class OpenGl3PixmapRenderer : PixmapRenderer {
private {
PresenterObjects* _pro;
@ -748,7 +748,7 @@ final class PixmapPresenter {
private {
PresenterObjects* _pro;
PixelRenderer _renderer;
PixmapRenderer _renderer;
static if (hasTimer) {
Timer _timer;
@ -761,14 +761,14 @@ final class PixmapPresenter {
///
this(const PresenterConfig config, bool useOpenGl = true) {
if (useOpenGl) {
this(config, new OpenGL3PixelRenderer());
this(config, new OpenGl3PixmapRenderer());
} else {
assert(false, "Not implemented");
}
}
///
this(const PresenterConfig config, PixelRenderer renderer) {
this(const PresenterConfig config, PixmapRenderer renderer) {
_renderer = renderer;
// create software framebuffer