使用只能指针代替裸指针

This commit is contained in:
Jie
2024-09-30 13:34:05 +08:00
parent 7c049db4ac
commit 1237b164bf
12 changed files with 246 additions and 25 deletions

11
include/videoService.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef VIDEOSERVICE_H
#define VIDEOSERVICE_H
#include <SFML/Graphics.hpp>
#include <memory>
class VideoService {
private:
std::shared_ptr<sf::Texture> texture;
};
#endif