Jump to content

Recommended Posts

Posted

OpenGL calls.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Find where the event is fired. right-click -> references -> workspace

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

By binding a texture

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

I now have this:

	public void renderCheese(int width, int height) {
	mc.mcProfiler.startSection("cheese");

	EntityPlayer player = (EntityPlayer) mc.getRenderViewEntity();
	GlStateManager.enableBlend();
	int left = width / 2 + 91;
	int top = height - right_height;
	right_height += 10;
	ICheese cheese = player.getCapability(CheeseProvider.CHEESE_CAP, null);
	int level = cheese.get();
	int y = top;
	int icon = 16;
	byte background = 0;

	for (int i = 0; i < 10; ++i) {
		mc.renderEngine.bindTexture(new ResourceLocation(Reference.MODID + ":textures/cheese.png"));
		int idx = i * 2 + 1;
		int x = left - i * 8 - 9;

		background = 0;

		drawTexturedModalRect(x, y, 16 + background * 9, 27, 9, 9);

		if (idx < level)
			drawTexturedModalRect(x, y, icon + 36, 27, 9, 9);
		else if (idx == level)
			drawTexturedModalRect(x, y, icon + 45, 27, 9, 9);
	}
	GlStateManager.disableBlend();
	mc.mcProfiler.endSection();
}

But it doesn't render anything

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Posted

Why is your bind texture call inside the loop?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

What happens if you change this

int level = cheese.get();

To this?

int level = 10;

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.