Parcourir la source

Remove unused texture file loading functions

Getting cubemaps and volume textures from file is very unlikely to ever
happen for our purposes.
jp9000 il y a 11 ans
Parent
commit
16f45e7244
2 fichiers modifiés avec 0 ajouts et 20 suppressions
  1. 0 16
      libobs/graphics/graphics.c
  2. 0 4
      libobs/graphics/graphics.h

+ 0 - 16
libobs/graphics/graphics.c

@@ -693,22 +693,6 @@ texture_t gs_create_texture_from_file(const char *file, uint32_t flags)
 	return NULL;
 }
 
-texture_t gs_create_cubetexture_from_file(const char *file, uint32_t flags)
-{
-	/* TODO */
-	UNUSED_PARAMETER(file);
-	UNUSED_PARAMETER(flags);
-	return NULL;
-}
-
-texture_t gs_create_volumetexture_from_file(const char *file, uint32_t flags)
-{
-	/* TODO */
-	UNUSED_PARAMETER(file);
-	UNUSED_PARAMETER(flags);
-	return NULL;
-}
-
 static inline void assign_sprite_rect(float *start, float *end, float size,
 		bool flip)
 {

+ 0 - 4
libobs/graphics/graphics.h

@@ -481,10 +481,6 @@ EXPORT shader_t gs_create_pixelshader_from_file(const char *file,
 
 EXPORT texture_t gs_create_texture_from_file(const char *file,
 		uint32_t flags);
-EXPORT texture_t gs_create_cubetexture_from_file(const char *flie,
-		uint32_t flags);
-EXPORT texture_t gs_create_volumetexture_from_file(const char *flie,
-		uint32_t flags);
 
 #define GS_FLIP_U (1<<0)
 #define GS_FLIP_V (1<<1)