Aurelijus1 Posted October 19, 2015 Author Share Posted October 19, 2015 i get **Sub or function not defined** error no this line:**RenderTextureByRects** Tex_Tileset(Tileset), sRECT, drect Link to comment Share on other sites More sharing options...
Joyce Posted October 19, 2015 Share Posted October 19, 2015 Probably because it does not exist in your engine. What are you using and where are you copying all this from? Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 19, 2015 Author Share Posted October 19, 2015 i have fixed that problem adding this```Public Sub RenderTextureByRects(TextureRec As DX8TextureRec, sRECT As RECT, drect As RECT, Optional Colour As Long = -1) ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler RenderTexture TextureRec, drect.Left, drect.Top, sRECT.Left, sRECT.Top, drect.Right - drect.Left, drect.Bottom - drect.Top, sRECT.Right - sRECT.Left, sRECT.Bottom - sRECT.Top, Colour ' Error handler Exit Suberrorhandler: HandleError "RenderTextureByRects", "modGraphics", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub```but now i'am having other problem **user defined type not defined on this line**```Public Sub RenderTextureByRects(TextureRec As DX8TextureRec, sRECT As RECT, drect As RECT, Optional Colour As Long = -1)``` Link to comment Share on other sites More sharing options...
Joyce Posted October 19, 2015 Share Posted October 19, 2015 Again, what are you doing exactly? It sounds to me like you're copying DirectX8 material to a DirectX7 engine which won't work. Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 19, 2015 Author Share Posted October 19, 2015 Fixed by changing DX8TextureRec to DirectDrawSurface7* * *you are right :D Link to comment Share on other sites More sharing options...
Joyce Posted October 19, 2015 Share Posted October 19, 2015 That might work, but not every D3D8 sub is the same as their older DD7 counterpart. So you may need to rewrite some bits and pieces. Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 19, 2015 Author Share Posted October 19, 2015 i have found engine that have autotile system and dx7 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now