I am using the OpelnGL texturemanager class supplied with S60 3rd sdk
utilities.h and utilities.cpp. However when i try to run my program i get user error or system error messages debending how I modify the code.
The cpp code that causes the error looks like this:
my pkg file looks like this:Code:iTextureManager = CTextureManager::NewL ( size.iWidth,size.iHeight, FRUSTUM_TOP, FRUSTUM_BOTTOM, FRUSTUM_RIGHT, FRUSTUM_LEFT, FRUSTUM_NEAR ); // Pushing the textures into the loading queue. _LIT(KAsteroidTexture, "c:\private\E1CDC3AC\texture.jpg"); //this causes user 11 error _LIT(KAsteroidTexture, "texture.jpg"); //this causes system error -12 iTextureManager->RequestToLoad(KAsteroidTexture, &iAsteroidTexture ); //Start to load the textures. iTextureManager->DoLoadL();
Code:; Installation file for AsteroidsS60 application ; ; This is an auto-generated PKG file by Carbide. ; This file uses variables specific to Carbide builds that will not work ; on command-line builds. If you want to use this generated PKG file from the ; command-line tools you will need to modify the variables with the appropriate ; values: $(EPOCROOT), $(PLATFORM), $(TARGET) ; ;Language - standard language definitions &EN ; standard SIS file header #{"AsteroidsS60"},(0xE1CDC3AC),1,0,0 ;Localised Vendor name %{"Vendor-EN"} ;Unique Vendor name :"Vendor" ;Supports Series 60 v 3.0 [0x101F7961], 0, 0, 0, {"Series60ProductID"} ;Files to install ;You should change the source paths to match that of your environment ;<source> <destination> "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\AsteroidsS60.exe" -"!:\sys\bin\AsteroidsS60.exe" "$(EPOCROOT)Epoc32\data\z\resource\apps\AsteroidsS60.rsc" -"!:\resource\apps\AsteroidsS60.rsc" "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\AsteroidsS60_reg.rsc" -"!:\private\10003a3f\import\apps\AsteroidsS60_reg.rsc" "$(EPOCROOT)Epoc32\data\z\resource\apps\AsteroidsS60.mif" -"!:\resource\apps\AsteroidsS60.mif" "..\inc\texture.jpg" -"!:\private\E1CDC3AC\texture.jpg" ; Add any installation notes if applicable ;"AsteroidsS60.txt" -"!:\private\E1CDC3AC\AsteroidsS60.txt" ;required for application to be covered by backup/restore facility "..\sis\backup_registration.xml" -"!:\private\E1CDC3AC\backup_registration.xml"



