我的世界texturemanager怎么删掉boot manager除

Modpack Not Responding Help - Mods Discussion - Minecraft Mods - Mapping and Modding: Java Edition - Minecraft Forum - Minecraft Forum
This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Starting July 30th, you will no longer be able to log in to a Curse account that was not merged with a Twitch account. If you have not yet merged your Curse account with a Twitch account, please do so ! Otherwise, your account and its content will be inaccessible.
I'm working on a new modpack and have run into an issue. While test running it on minecraft, it gets stuck on not responding when loading object models . I've tried increasing the ram size, not quite sure how to fix this. Here's the log.
Try removing the shaders mod.
there is no shaders mod
Examining for coremod candidacy ShadersMod-v2.7.1mc1.12.jar[12:57:47] [main/INFO] [FML/]: Loading tweaker shadersmod.launch.SMCTweaker from ShadersMod-v2.7.1mc1.12.jar[12:57:47] [main/INFO] [LaunchWrapper/]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker[12:57:47] [main/INFO] [LaunchWrapper/]: Loading tweak class name shadersmod.launch
That's weird, I don't have one in my mods folder but I have a separate instance of forge with shaders mod. Would that be it?
No idea, but it's clearly finding it from somewhere! I thought it'd be in "C:\Users\savin\AppData\Roaming\.minecraft\mods". Maybe it's in core mods or something?
Here's all my mods.
there is no coremods folder, i wondered if it would be in config?
Where did you get forge from? Their 'official' website, or elsewhere?
Looking at your mods.... "GoodOldBackpacks-1.10.2-1.0.0.jar" seems to be for Minecraft 1.10.2 ()?
In fact, a lot of those mods look like they are for 1.10?
yes, i had the shaders for a different version (1.7.10) but my modpack version including forge is all 1.10.2. The shaders were never installed on the modpack. my forge is from the official website.
OK...but...the log you posted is "Minecraft Version: 1.12".
Most mods only work i there's some confusion going on here.
That's confusing, when i load it up it says forge 1.10.2.
here's a pic, just so you know I'm not being stupid and missing something.
I had at one point downloaded 1.12 forge but deleted it before i got this one
Yeah - I believe you - but you can see for yourself what the logs are saying too.
I were you, I'd uninstall all the versions and reinstall - first just vanilla, making sure it worked. Then forge. Then adding mods.
Okay, so should I uninstall minecraft as a whole?
I would. It's often quicker than trying to find out what the problems were.
(It should go without saying, but back up anything you care about of course.)
To post a comment, please
a new account.
Posts Quoted:
Clear All Quotessample exception.0Stitching texture atlas0Stitching texture atlasShow more (6)java.lang.NullPointerException: Stitching texture atlas at shadersmodcore.client.ShadersTex.readImage(ShadersTex.java:464) at shadersmodcore.client.ShadersTex.readImageAndMipmaps(ShadersTex.java:439) at shadersmodcore.client.ShadersTex.uploadTexSubForLoadAtlas(ShadersTex.java:419) at net.minecraft.client.renderer.texture.TextureMap.func_110571_b(TextureMap.java:381) at net.minecraft.client.renderer.texture.TextureMap.func_110551_a(TextureMap.java:136) at net.minecraft.client.renderer.texture.TextureManager.func_110579_a(TextureManager.java:94) at net.minecraft.client.renderer.texture.TextureManager.func_110580_a(TextureManager.java:76) at net.minecraft.client.renderer.texture.TextureManager.func_130088_a(TextureManager.java:63) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:545) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:310) at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:394) at org.multimc.EntryPoint.listen(EntryPoint.java:170) at org.multimc.EntryPoint.main(EntryPoint.java:54)Unknown userOnce, 1 year agoUnknown userOnce, 1 year agoUnknown userOnce, 2 years agoUnknown userOnce, 2 years agoUnknown userOnce, 2 years agoKnow the solutions? Share your knowledge to help other developers to debug faster.Write tip大佬们帮忙看看这是怎么回事&-&综合问答&-&Minecraft(我的世界)中文论坛 -
后使用快捷导航没有帐号?
查看: 110|回复: 6
大佬们帮忙看看这是怎么回事
加载到第六步finish那会儿突然崩溃
显示的是非正常退出
下面是错误报告
---- Minecraft Crash Report ----
// I just don't know what went wrong :(
Time: 18-6-21 下午10:51
Description: There was a severe problem during mod loading that has caused the game to fail
cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: amerifrance/guideapi/gui/GuiEntry
& & & & at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)
& & & & at cpw.mods.fml.common.Loader.initializeMods(Loader.java:744)
& & & & at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
& & & & at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:552)
& & & & at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)
& & & & at net.minecraft.client.main.Main.main(SourceFile:148)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
& & & & at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
& & & & at java.lang.reflect.Method.invoke(Unknown Source)
& & & & at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
& & & & at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
& & & & at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
& & & & at java.lang.reflect.Method.invoke(Unknown Source)
& & & & at org.jackhuang.hellominecraft.launcher.Launcher.main(Launcher.java:112)
Caused by: java.lang.NoClassDefFoundError: amerifrance/guideapi/gui/GuiEntry
& & & & at java.lang.ClassLoader.defineClass1(Native Method)
& & & & at java.lang.ClassLoader.defineClass(Unknown Source)
& & & & at java.security.SecureClassLoader.defineClass(Unknown Source)
& & & & at java.net.URLClassLoader.defineClass(Unknown Source)
& & & & at java.net.URLClassLoader.access$100(Unknown Source)
& & & & at java.net.URLClassLoader$1.run(Unknown Source)
& & & & at java.net.URLClassLoader$1.run(Unknown Source)
& & & & at java.security.AccessController.doPrivileged(Native Method)
& & & & at java.net.URLClassLoader.findClass(Unknown Source)
& & & & at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:117)
& & & & at java.lang.ClassLoader.loadClass(Unknown Source)
& & & & at java.lang.ClassLoader.loadClass(Unknown Source)
& & & & at mmmlibx.lib.multiModel.texture.MultiModelManager.addModelClass(MultiModelManager.java:103)
& & & & at mmmlibx.lib.multiModel.texture.MultiModelManager.load(MultiModelManager.java:79)
& & & & at mmmlibx.lib.FileLoaderBase.preLoad(FileLoaderBase.java:107)
& & & & at mmmlibx.lib.FileLoaderBase.decodeZip(FileLoaderBase.java:52)
& & & & at mmmlibx.lib.multiModel.texture.MultiModelManager.decodeZip(MultiModelManager.java:71)
& & & & at mmmlibx.lib.FileLoaderBase.execute(FileLoaderBase.java:27)
& & & & at mmmlibx.lib.multiModel.texture.MultiModelManager.execute(MultiModelManager.java:63)
& & & & at mmmlibx.lib.MMMLib.loaded(MMMLib.java:123)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
& & & & at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
& & & & at java.lang.reflect.Method.invoke(Unknown Source)
& & & & at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
& & & & at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
& & & & at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
& & & & at java.lang.reflect.Method.invoke(Unknown Source)
& & & & at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
& & & & at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
& & & & at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
& & & & at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
& & & & at com.google.common.eventbus.EventBus.post(EventBus.java:275)
& & & & at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
& & & & at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
& & & & at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
& & & & at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
& & & & at java.lang.reflect.Method.invoke(Unknown Source)
& & & & at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
& & & & at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
& & & & at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
& & & & at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
& & & & at com.google.common.eventbus.EventBus.post(EventBus.java:275)
& & & & at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
& & & & at cpw.mods.fml.common.Loader.initializeMods(Loader.java:742)
& & & & ... 15 more
Caused by: java.lang.ClassNotFoundException: amerifrance.guideapi.gui.GuiEntry
& & & & at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
& & & & at java.lang.ClassLoader.loadClass(Unknown Source)
& & & & at java.lang.ClassLoader.loadClass(Unknown Source)
& & & & ... 61 more
Caused by: java.lang.NullPointerException
& & & & at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
& & & & ... 63 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
& & & & Minecraft Version: 1.7.10
& & & & Operating System: Windows 7 (amd64) version 6.1
& & & & Java Version: 1.8.0_171, Oracle Corporation
& & & & Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
& & & & Memory:
bytes (2292 MB) /
bytes (3072 MB) up to
bytes (3072 MB)
& & & & JVM Flags: 6 -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -XX:+UseG1GC -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -Xmn128m -Xmx3072m
& & & & AABB Pool Size: 0 (0 0 MB) allocated, 0 (0 0 MB) used
& & & & IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
& & & & FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 46 mods loaded, 46 mods active
& & & & States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
& & & & UCHIJ& & & & mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
& & & & UCHIJ& & & & FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4..10.jar)
& & & & UCHIJ& & & & Forge{10.13.4.1614} [Minecraft Forge] (forge-1.7.10-10.13.4..10.jar)
& & & & UCHIJ& & & & CodeChickenCore{1.0.4.35} [CodeChicken Core] (minecraft.jar)
& & & & UCHIJ& & & & InputFix{1.7.10-v5} [InputFix] (minecraft.jar)
& & & & UCHIJ& & & & NotEnoughItems{1.0.4.90} [Not Enough Items] ([物品管理器]NotEnoughItems-1.7.10-1.0.4.90-universal.jar)
& & & & UCHIJ& & & & uniskinmod{1.2-dev3} [Universal Skin Mod] (minecraft.jar)
& & & & UCHIJ& & & & gasesCore{1.6.7} [Glenn's Gases Core] (minecraft.jar)
& & & & UCHIJ& & & & gasesFrameworkCore{1.2.4} [Gases Framework Core] (minecraft.jar)
& & & & UCHIJ& & & & OldModelLoader{1.0} [OldModelLoader] (minecraft.jar)
& & & & UCHIJ& & & & ExpandedIndustry{1.7.0b} [Expanded Industry] (1.7.10-ExpandedIndustry-1.7.0b.jar)
& & & & UCHIJ& & & & ZombieInfection{1.1.0} [Zombie Infection] (1.7.10[心殇汉化]僵尸感染Mod-V1.1.0.jar)
& & & & UCHIJ& & & & Apocalypse{0.0.6} [?Apocalypse?] ([1.7.10]启示录——Apocalypse心殇汉化-V0.0.6.jar)
& & & & UCHIJ& & & & CAJlOsRealism{0.2.9.075} [CAJlOsRealism] ([CAJlO的现实主义模组]CAJlOsRealism_1.7.10_0.2.9.075(莫念伤汉化).jar)
& & & & UCHIJ& & & & gregapi{GT6-MC1710} [Greg-API] (gregtech_1.7.10-6.07.01.jar)
& & & & UCHIJ& & & & craftguide{1.6.8.1} [CraftGuide] ([G键合成]CraftGuide[hukk汉化].zip)
& & & & UCHIJ& & & & yarr_cutemobmodels{1.0.7} [Cute Mob Models] ([怪物萌化]-1.7.10.jar)
& & & & UCHIJ& & & & inventorytweaks{1.59-dev-152-cf6e263} [Inventory Tweaks] ([物品整理]InventoryTweaks-1.59-dev-152.jar)
& & & & UCHIJ& & & & Baubles{1.0.1.10} [Baubles] (Baubles-1.7.10-1.0.1.10.jar)
& & & & UCHIJ& & & & Thaumcraft{4.2.3.5} [Thaumcraft] (Thaumcraft-1.7.10-4.2.3.5.jar)
& & & & UCHIJ& & & & Botania{r1.6-191} [Botania] (Botania+r1.6-191.jar)
& & & & UCHIJ& & & & CustomOreGen{1.2.18} [Custom Ore Generation] (CustomOreGen-1.7.10-1.2.18.jar)
& & & & UCHIJ& & & & VirusMod{1.1.0} [DiseaseCraft] (DiseaseCraft-1.1.1.jar)
& & & & UCHIJ& & & & DragonMounts{r41-1.7.10} [Dragon Mounts] (DragonMounts-r41-1.7.10.jar)
& & & & UCHIJ& & & & ESM{10.0.103} [Epic Siege Mod] (EpicSiegeMod-10.0.103.jar)
& & & & UCHIJ& & & & IC2{2.2.828-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.828-experimental.jar)
& & & & UCHIJ& & & & Forestry{4.2.16.64} [Forestry for Minecraft] (forestry_1.7.10-4.2.16.64.jar)
& & & & UCHIJ& & & & gasesFramework{1.2.4} [Gases Framework] (gasesFramework-1.7.10-1.2.4.jar)
& & & & UCHIJ& & & & gases{1.6.7} [Glenn's Gases] (gases-1.7.10-1.6.7.jar)
& & & & UCHIJ& & & & howlingmoon{0.9.6} [Howling Moon] (【狼人】howlingMoon-1.7.10-0.9.6汉化版-L2-.jar)
& & & & UCHIJ& & & & gregapi_post{GT6-MC1710} [Greg-API-Post] (gregtech_1.7.10-6.07.01.jar)
& & & & UCHIJ& & & & gregtech{GT6-MC1710} [GregTech] (gregtech_1.7.10-6.07.01.jar)
& & & & UCHIJ& & & & InfernalMobs{1.6.6} [Infernal Mobs] (InfernalMobs-1.7.10.jar)
& & & & UCHIJ& & & & journeymap{5.1.4p2} [JourneyMap] (journeymap-1.7.10-5.1.4p2-unlimited.jar)
& & & & UCHIJ& & & & lmmx{1.0} [lmmx] (littleMaidMobX-1.7.x_0.1.1.jar)
& & & & UCHIJ& & & & mod.ymt.lmd.LittleMaidDragon{17Av1} [LittleMaidDragon] (LittleMaidDragon-17Av1.zip)
& & & & UCHIE& & & & MMMLibX{1.7.x-srg-1} [MMMLibX] (littleMaidMobX-1.7.x_0.1.1.jar)
& & & & UCHIJ& & & & zabuton{1.0} [zabuton] (littleMaidMobX-1.7.x_0.1.1.jar)
& & & & UCHIJ& & & & mobends{0.20.1} [Mo' Bends] (MoBends-0.20.1 for MC 1.7.10.jar)
& & & & UCHIJ& & & & ogreseanmods{1.7.10} [OgreSean Mods] (OgreSeanMods-0.3(1.7.10).jar)
& & & & UCHIJ& & & & Wa{1.7.10.11} [Wa] (Wa-1.7.10.13-zh-ja-en.jar)
& & & & UCHIJ& & & & mal**core{1.7.10-0.12.5} [Mal**Core] (《1.7.10》更多门前置MOD.jar)
& & & & UCHIJ& & & & mal**doors{1.7.10-1.9.3} [Mal**' Doors] (《1.7.10》更多门MOD.jar)
& & & & UCHIJ& & & & vampirism{0.7.8.3} [Vampirism] (【吸血鬼】Vampirism-1.7.10-0.7.8.3.jar)
& & & & UCHIJ& & & & maidpro{0.2} [Maid Pro] (【女仆守护】MaidPro-1.7.10-0.2.jar)
& & & & UCHIJ& & & & AWWayofTime{v1.3.3} [Blood Magic: Alchemical Wizardry] (血魔法+v1.3.3-17+%281.7.10%29.jar)
& & & & GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.3574' Renderer: 'Intel(R) HD Graphics 4000'
内存已经设置成3G optfine删了还是不行 用的是64位的171版本Java
那就把该mod及其附属删除,还有你错版了
帖子永久链接:&<button type="submit" class="pn" onclick="setCopy('http://www.mcbbs.net/thread--1.html', '帖子地址已经复制到剪贴板您可以用快捷键 Ctrl + V 粘贴到 QQ、MSN 里。')">点击复制
那不是女仆mod吗……不删除其附属mod大丈夫?
那就把该mod及其附属删除,还有你错版了
不好意思第一次发帖求助……有点不太清楚要分在mod版还是直接发综合
如果特别想用女仆mod的话怎么办 是女仆mod版本太低的问题吗&
将littleMaidMobX-1.7.x_0.1.1.jar删除
那不是女仆mod吗……不删除其附属mod大丈夫?&
将littleMaidMobX-1.7.x_0.1.1.jar删除
那不是女仆mod吗……不删除其附属mod大丈夫?
那就把该mod及其附属删除&
那就把该mod及其附属删除,还有你错版了
不好意思第一次发帖求助……有点不太清楚要分在mod版还是直接发综合
如果特别想用女仆mod的话怎么办 是女仆mod版本太低的问题吗
R键整理和G键合成放服务端干嘛.....
emmmmm 这个是客户端 不是服务端&
R键整理和G键合成放服务端干嘛.....
emmmmm 这个是客户端 不是服务端
""以及"我的世界"为Mojang Synergies AB的商标。本站与Mojang以及微软公司没有从属关系。
版权所有。本站原创图文内容版权属于原创作者,未经许可不得转载。BackWall.class
Constant.class
Dice.class
DiceActivity$1.class
DiceActivity$2.class
DiceActivity.class
DiceRenderer$1.class
DiceRenderer$RotateTask.class
DiceRenderer.class
DiceSurfaceView.class
R$attr.class
R$drawable.class
R$id.class
R$layout.class
R$string.class
TextureManager.class
classes.dex
Dice-1.0.apk
resources.ap_
drawable-hdpi
icon01.png
icon02.png
drawable-ldpi
icon01.png
label_icon1.png
drawable-mdpi
icon01.png
icon02.png
classes.dex
Dice-1.0.apk
resources.ap_
drawable-hdpi
icon01.png
icon02.png
drawable-ldpi
icon01.png
label_icon1.png
drawable-mdpi
dice_map.jpg
icon01.png
icon02.png
strings.xml
.classpath
AndroidManifest.xml
default.properties
proguard.cfg
project.properties
package gkp.yue.ddd.
import java.io.IOE
import java.io.InputS
import javax.microedition.khronos.opengles.GL10;
import android.content.res.R
import android.graphics.B
import android.graphics.BitmapF
import android.opengl.GLU
import android.util.L
* 纹理管理者
* @author Yue Jinbiao
public class TextureManager {
//纹理索引号
public static final int TEXTURE_INDEX_DICE = 0;
public static final int TEXTURE_INDEX_BG00 = 1;
public static final int TEXTURE_INDEX_BG01 = 2;
public static final int TEXTURE_INDEX_BG02 = 3;
//纹理资源id
private static int[] textureSrcs = {R.drawable.dice_map,R.drawable.bg00,R.drawable.bg01,R.drawable.bg02};
//纹理id存储
private static int[] textureIds = new int[textureSrcs.length];
private static GL10 gl =
private static Resources res =
//背景画索引 0-2;
public static int bgIndex = 0;
* 取得指定索引的纹理id
* @param index
public static int getTextureId(int index){
Log.i(&tg&,&TextureManager/getTextureId/& + textureIds[index]);
if(textureIds[index] &= 0){
Log.i(&tg&,&TextureManager/getTextureId/& + textureIds[index]);
gl.glGenTextures(1, textureIds, index);
bindTexture(gl,res,index);
return textureIds[index];
/**初始化纹理*/
public static void initTexture( GL10 gl, Resources res) {
TextureManager.gl =
TextureManager.res =
//获取未使用的纹理对象ID
gl.glGenTextures(1, textureIds, TEXTURE_INDEX_DICE);
bindTexture(gl,res,TEXTURE_INDEX_DICE);
//获取未使用的纹理对象ID
gl.glGenTextures(1, textureIds, bgIndex + 1);
bindTexture(gl,res,bgIndex + 1);
for(int i=0;i&textureIds.i++){
bindTexture(gl,res,i);
* 为纹理id绑定纹理。
* @param gl
* @param res
* @param index
private static void bindTexture(GL10 gl,Resources res,int index){
Log.i(&tg&,&TextureManager/initTexture/& + textureIds[i]);
//绑定纹理对象
gl.glBindTexture(GL10.GL_TEXTURE_2D, textureIds[index]);
//设置纹理控制,指定使用纹理时的处理方式
//缩小过滤:一个像素代表多个纹素。
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
//纹理目标
GL10.GL_TEXTURE_MIN_FILTER,
//纹理缩小过滤
GL10.GL_NEAREST
//使用距离当前渲染像素中心最近的纹素
//放大过滤:一个像素是一个纹素的一部分。
//放大过滤时,使用距离当前渲染像素中心,最近的4个纹素加权平均值,也叫双线性过滤。
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,
GL10.GL_LINEAR);
//设置纹理贴图方式,指定对超出【0,1】的纹理坐标的处理方式
//左下角是【0,0】,右上角是【1,1】,横向是S维,纵向是T维。android以左上角为原点
//S维贴图方式:重复平铺
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
GL10.GL_REPEAT);
//T维贴图方式:重复平铺
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,
GL10.GL_REPEAT);
bindBitmap(index,res);
* 为纹理绑定位图
* @param index
* @param res
private static void bindBitmap(int index,Resources res){
Bitmap bitmap =
InputStream is = res.openRawResource(textureSrcs[index]);
bitmap = BitmapFactory.decodeStream(is);
} finally {
if(is != null){
is.close();
} catch (IOException e) {
e.printStackTrace();
//为纹理对象指定位图
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
//释放bitmap对象内存,像素数据仍存在,不影响使用。
bitmap.recycle();
Copyright(C)
OKBASE.NET All Rights Reserved 好库网 版权所有}

我要回帖

更多关于 启动顺序boot manager 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信