Character texture management method and device
A management method and a technology for managing equipment, which are applied in the field of text texture management and equipment, and can solve the problems of excessive texture addition and deletion operations, unreasonable use of equipment storage space, and low rendering efficiency
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2015-11-04
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The invention relates to the technical field of electronic maps, in particular to a text texture management method and equipment applicable to electronic maps. Background technique
[0002] At present, electronic maps often involve the display of text information such as POI (Point Of Interest) names and road names. Before displaying text information, it is usually necessary to render the text involved accordingly, that is, to Each text involved generates a corresponding text texture.
[0003] Specifically, since it is a time-consuming operation to generate corresponding text textures from text, therefore, in OPENGL (Open Graphics Library, a professional graphics program interface) or DIRECTX (Direct EXTENSION, referred to as DX, a multimedia programming interface) In engines such as hardware rendering, under normal circumstances, the generated text textures need to be saved accordingly, so that they can be used directly in the next rendering and impr...
Examples
Embodiment 1
[0051] Embodiment 1 of the present invention provides a text texture management method, such as figure 1 As shown, it is a schematic flowchart of the text texture management method in Embodiment 1 of the present invention, and the text texture management method may include the following steps:
[0052] Step 101: For any text texture to be stored generated during the electronic map rendering process, according to the texture size of the text texture to be stored and the pre-configured correspondence between texture size and texture type, determine the text texture corresponding to the text texture to be stored texture type.
[0053] Specifically, in the embodiments of the present invention, unless otherwise specified, the electronic map generally refers to a Chinese electronic map; correspondingly, the text texture to be stored generated during the rendering of the electronic map generally refers to, The embodiment of the present invention does not describe the new text textur...
Embodiment 2
[0115] Embodiment 2 of the present invention provides a text texture management device, such as figure 2 As shown, it is a schematic structural diagram of the text texture management device in Embodiment 2 of the present invention. The text texture management device may include a relationship configuration unit 11, a type determination unit 12, and a texture storage unit 13, wherein:
[0116] The relationship configuration unit 11 can be used to pre-configure the corresponding relationship between texture size and texture type and the corresponding relationship between texture type and texture number upper limit, wherein the texture number upper limit corresponding to each texture type is based on the used for storage The hardware resources of each text texture device are pre-configured, and the more hardware resources of the device, the higher the upper limit of the number of textures corresponding to the texture type with a larger texture size; for example, with the device ...