graphics

How to texture of a glutSolidTorus in OpenGL? [closed]

Deadly 提交于 2020-08-25 04:08:39
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Improve this question I am trying to texture a glutSolidTorus() . Here is my code: glColor3f(1.0f, 1.0f, 1.0f); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, tiring); glutSolidTorus(.55, 1.8, 25, 25); glDisable(GL_TEXTURE_2D); But it does not work. How can I texture glutSolidTorus() ? 回答1:

ComboBox OwnerDrawVariable Font format size problem

随声附和 提交于 2020-08-25 03:53:00
问题 I'm trying to implement a auto-complete/search box similar to Visual Studio's Go To member search: However, my formatting of the bold text and its spacing isn't calculating right. I'll omit the auto complete functionality of this and only include code that is formatting the result by hard coding a search term. The spacing determined by e.Graphics.MeasureString doesn't seem to return correct value. I tried to use StringFormat.GenericTypographic from this question and I got closer but still not