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

CN105022758AActive Publication Date: 2015-11-04ALIBABA (CHINA) CO LTD
3 Cites 8 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2015-11-04

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

Disclosed are a method and device for managing a character texture. The method comprises: determining a texture type corresponding to any character texture to be stored according to a preset correspondence between texture sizes and texture types, and when it is determined that the number of textures stored under the corresponding texture type is smaller than a corresponding upper limit, storing the character texture to be stored under the corresponding texture type, wherein the upper limit of the number of textures under each texture type is configured according to hardware resources of a device, and the more the hardware resources of the device are, the higher the upper limit of the number of textures under a texture type having a correspondingly larger texture size is. In this scheme, the textures can be classified according to the texture sizes and the textures can be stored according to the texture types, and the more the hardware resources of the device are, the higher the upper limit of the number of textures under a texture type having a correspondingly larger texture size is. Therefore, the textures are prevented from being added or deleted too frequently in the current texture management, and thus the storage space of the device can be reasonably utilized.
Need to check novelty before this filing date? Find Prior Art

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 ...