Kaynağa Gözat

Update pixel/vertex shader resources

Daniele Bartolini 12 yıl önce
ebeveyn
işleme
391dd6666f

+ 2 - 2
src/PixelShaderResource.cpp

@@ -24,7 +24,7 @@ OTHER DEALINGS IN THE SOFTWARE.
 */
 */
 
 
 #include "PixelShaderResource.h"
 #include "PixelShaderResource.h"
-#include "FileStream.h"
+#include "DiskFile.h"
 #include "ResourceArchive.h"
 #include "ResourceArchive.h"
 #include "Allocator.h"
 #include "Allocator.h"
 #include "Device.h"
 #include "Device.h"
@@ -36,7 +36,7 @@ namespace crown
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 void* PixelShaderResource::load(Allocator& allocator, ResourceArchive& archive, ResourceId id)
 void* PixelShaderResource::load(Allocator& allocator, ResourceArchive& archive, ResourceId id)
 {
 {
-	FileStream* stream = archive.open(id);
+	DiskFile* stream = archive.open(id);
 
 
 	CE_ASSERT(stream != NULL, "Resource does not exist: %.8X%.8X", id.name, id.type);
 	CE_ASSERT(stream != NULL, "Resource does not exist: %.8X%.8X", id.name, id.type);
 
 

+ 2 - 2
src/VertexShaderResource.cpp

@@ -24,7 +24,7 @@ OTHER DEALINGS IN THE SOFTWARE.
 */
 */
 
 
 #include "VertexShaderResource.h"
 #include "VertexShaderResource.h"
-#include "FileStream.h"
+#include "DiskFile.h"
 #include "ResourceArchive.h"
 #include "ResourceArchive.h"
 #include "Allocator.h"
 #include "Allocator.h"
 #include "Device.h"
 #include "Device.h"
@@ -36,7 +36,7 @@ namespace crown
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 void* VertexShaderResource::load(Allocator& allocator, ResourceArchive& archive, ResourceId id)
 void* VertexShaderResource::load(Allocator& allocator, ResourceArchive& archive, ResourceId id)
 {
 {
-	FileStream* stream = archive.open(id);
+	DiskFile* stream = archive.open(id);
 
 
 	CE_ASSERT(stream != NULL, "Resource does not exist: %.8X%.8X", id.name, id.type);
 	CE_ASSERT(stream != NULL, "Resource does not exist: %.8X%.8X", id.name, id.type);