使用只能指针代替裸指针
This commit is contained in:
11
include/videoService.h
Normal file
11
include/videoService.h
Normal 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
|
||||
Reference in New Issue
Block a user